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
name
stringThe dependency name.
version
intThe current format version of this asset.
minUpgradableVersion
intThe 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
name
stringThe dependency name.
version
stringThe current format version of this asset.
minUpgradableVersion
stringThe 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.