AssetFormatVersionAttribute Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Describes what format version this asset currently uses, for asset upgrading.
[AttributeUsage(AttributeTargets.Class)]
public class AssetFormatVersionAttribute : Attribute, _Attribute
Name | Description | |
---|---|---|
Constructors | ||
AssetFormatVersionAttribute(String, Int32, Int32) | Initializes a new instance of the AssetFormatVersionAttribute class. |
|
AssetFormatVersionAttribute(String, String, String) | Initializes a new instance of the AssetFormatVersionAttribute class. |
|
Properties | ||
MinUpgradableVersion | Gets the minimum format version that supports upgrade for this asset. |
|
Name | Gets or sets the dependency name. |
|
Version | Gets the current format version of this asset. |
Constructors
AssetFormatVersionAttribute(String, Int32, Int32)
Initializes a new instance of the AssetFormatVersionAttribute class.
public AssetFormatVersionAttribute(string name, int version, int minUpgradableVersion = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The dependency name. |
System.Int32 | version | The current format version of this asset. |
System.Int32 | minUpgradableVersion | The minimum format version that supports upgrade for this asset. |
AssetFormatVersionAttribute(String, String, String)
Initializes a new instance of the AssetFormatVersionAttribute class.
public AssetFormatVersionAttribute(string name, string version, string minUpgradableVersion = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The dependency name. |
System.String | version | The current format version of this asset. |
System.String | minUpgradableVersion | The minimum format version that supports upgrade for this asset. |
Properties
MinUpgradableVersion
Gets the minimum format version that supports upgrade for this asset.
public PackageVersion MinUpgradableVersion { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.PackageVersion | The minimum format version that supports upgrade for this asset. |
Name
Gets or sets the dependency name.
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Version
Gets the current format version of this asset.
public PackageVersion Version { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.PackageVersion | The current format version of this asset. |