AssetUpgraderAttribute Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Describes which upgrader type to use to upgrade an asset, depending on this current version number.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class AssetUpgraderAttribute : Attribute, _Attribute
Name | Description | |
---|---|---|
Constructors | ||
AssetUpgraderAttribute(String, Int32, Int32, Type) | Initializes a new instance of the AssetUpgraderAttribute with a single supported initial version number. |
|
AssetUpgraderAttribute(String, String, String, Type) | Initializes a new instance of the AssetUpgraderAttribute with a range of supported initial version numbers. |
|
Properties | ||
AssetUpgraderType | Gets or sets the type of upgrader to instantiate to upgrade the asset. |
|
Name | Gets or sets the dependency name. |
|
StartVersion | Gets or sets the minimal initial version number this upgrader can work on. |
|
TargetVersion | Gets or sets the target version number of this upgrader. |
Constructors
AssetUpgraderAttribute(String, Int32, Int32, Type)
Initializes a new instance of the AssetUpgraderAttribute with a single supported initial version number.
public AssetUpgraderAttribute(string name, int startVersion, int targetVersion, Type assetUpgraderType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The dependency name. |
System.Int32 | startVersion | The initial version number this upgrader can work on. |
System.Int32 | targetVersion | The target version number of this upgrader. |
System.Type | assetUpgraderType | The type of upgrader to instantiate to upgrade the asset. |
AssetUpgraderAttribute(String, String, String, Type)
Initializes a new instance of the AssetUpgraderAttribute with a range of supported initial version numbers.
public AssetUpgraderAttribute(string name, string startMinVersion, string targetVersion, Type assetUpgraderType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The dependency name. |
System.String | startMinVersion | The minimal initial version number this upgrader can work on. |
System.String | targetVersion | The target version number of this upgrader. |
System.Type | assetUpgraderType | The type of upgrader to instantiate to upgrade the asset. |
Properties
AssetUpgraderType
Gets or sets the type of upgrader to instantiate to upgrade the asset.
public Type AssetUpgraderType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Name
Gets or sets the dependency name.
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StartVersion
Gets or sets the minimal initial version number this upgrader can work on.
public PackageVersion StartVersion { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.PackageVersion |
TargetVersion
Gets or sets the target version number of this upgrader.
public PackageVersion TargetVersion { get; set; }
Property Value
Type | Description |
---|---|
Stride.Core.PackageVersion |