Table of Contents

Class AssetFormatVersionAttribute

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

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 string

The dependency name.

version int

The current format version of this asset.

minUpgradableVersion int

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

name string

The dependency name.

version string

The current format version of this asset.

minUpgradableVersion string

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

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

string

Version

Gets the current format version of this asset.

public PackageVersion Version { get; set; }

Property Value

PackageVersion

The current format version of this asset.