Class AssetUpgraderAttribute
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
- Inheritance
-
AssetUpgraderAttribute
- Inherited Members
Constructors
AssetUpgraderAttribute(string, int, int, 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
name
stringThe dependency name.
startVersion
intThe initial version number this upgrader can work on.
targetVersion
intThe target version number of this upgrader.
assetUpgraderType
TypeThe 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
name
stringThe dependency name.
startMinVersion
stringThe minimal initial version number this upgrader can work on.
targetVersion
stringThe target version number of this upgrader.
assetUpgraderType
TypeThe 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
Name
Gets or sets the dependency name.
public string Name { get; set; }
Property Value
StartVersion
Gets or sets the minimal initial version number this upgrader can work on.
public PackageVersion StartVersion { get; set; }
Property Value
- PackageVersion
TargetVersion
Gets or sets the target version number of this upgrader.
public PackageVersion TargetVersion { get; set; }
Property Value
- PackageVersion