Table of Contents

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
object
AssetFileExtensionAttribute
Inherited Members
Extension Methods

Constructors

AssetFileExtensionAttribute(string, Type)

public AssetFileExtensionAttribute(string extension, Type contentType)

Parameters

extension string
contentType Type

Properties

ContentType

The type the compiled content of such an asset loads as.

public Type ContentType { get; }

Property Value

Type

Extension

The asset file extension, with its leading dot.

public string Extension { get; }

Property Value

string