Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetDescriptionAttribute Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    Associates meta-information to a particular Asset.

    System.Object → System.Attribute → AssetDescriptionAttribute
    Derived from AssetDescriptionAttribute:

    [AttributeUsage(AttributeTargets.Class)]
    public class AssetDescriptionAttribute : Attribute, _Attribute
    Name Description
    Constructors
    AssetDescriptionAttribute(String)

    Initializes a new instance of the AssetDescriptionAttribute class.

    Properties
    AllowArchetype

    Gets whether this asset can be an archetype.

    AlwaysMarkAsRoot

    Always mark this asset type as root.

    FileExtensions

    Gets the file extensions supported by a type of asset.

    Referenceable

    Defines if an asset is referenceable through an AssetReference. Asset name collision is allowed in this case because they exist only at compile-time.

    | Improve this Doc View Source

    Constructors


    AssetDescriptionAttribute(String)

    Initializes a new instance of the AssetDescriptionAttribute class.

    public AssetDescriptionAttribute(string fileExtensions)
    Parameters
    Type Name Description
    System.String fileExtensions

    The file extensions supported by a type of asset.

    | Improve this Doc View Source

    Properties


    AllowArchetype

    Gets whether this asset can be an archetype.

    public bool AllowArchetype { get; set; }
    Property Value
    Type Description
    System.Boolean

    AlwaysMarkAsRoot

    Always mark this asset type as root.

    public bool AlwaysMarkAsRoot { get; set; }
    Property Value
    Type Description
    System.Boolean

    FileExtensions

    Gets the file extensions supported by a type of asset.

    public string FileExtensions { get; }
    Property Value
    Type Description
    System.String

    The extension.


    Referenceable

    Defines if an asset is referenceable through an AssetReference. Asset name collision is allowed in this case because they exist only at compile-time.

    public bool Referenceable { get; set; }
    Property Value
    Type Description
    System.Boolean

    Inherited Members

    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.Equals(System.Object)
    System.Attribute.GetHashCode()
    System.Attribute.Match(System.Object)
    System.Attribute.IsDefaultAttribute()
    System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
    System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
    System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
    System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
    System.Attribute.TypeId

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation