Class AssetFileExtensionAttribute
- Namespace
- Stride.Core.Serialization
- Assembly
- Stride.Core.Serialization.dll
Declares, in a runtime assembly, that asset files with Extension compile to ContentType. The asset URL constants generator types its constants from it.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class AssetFileExtensionAttribute : Attribute
- Inheritance
-
objectAssetFileExtensionAttribute
- Inherited Members
- Extension Methods
Constructors
AssetFileExtensionAttribute(string, Type)
public AssetFileExtensionAttribute(string extension, Type contentType)
Parameters
Properties
ContentType
The type the compiled content of such an asset loads as.
public Type ContentType { get; }
Property Value
Extension
The asset file extension, with its leading dot.
public string Extension { get; }