Class AssetFormatVersionAttribute
Describes what format version this asset currently uses, for asset upgrading.
[AttributeUsage(AttributeTargets.Class)]
public class AssetFormatVersionAttribute : Attribute
- Inheritance
-
AssetFormatVersionAttribute
- Inherited Members
Constructors
AssetFormatVersionAttribute(string, int, int)
Initializes a new instance of the AssetFormatVersionAttribute class.
public AssetFormatVersionAttribute(string name, int version, int minUpgradableVersion = 0)
Parameters
namestringThe dependency name.
versionintThe current format version of this asset.
minUpgradableVersionintThe 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
namestringThe dependency name.
versionstringThe current format version of this asset.
minUpgradableVersionstringThe 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
- 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
Version
Gets the current format version of this asset.
public PackageVersion Version { get; set; }
Property Value
- PackageVersion
The current format version of this asset.