AssetDescriptionAttribute Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Associates meta-information to a particular Asset.
[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. |
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. |
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 |