Table of Contents

Class AssetUpgraderAttribute

Namespace
Stride.Core.Assets
Assembly
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
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 string

The dependency name.

startVersion int

The initial version number this upgrader can work on.

targetVersion int

The target version number of this upgrader.

assetUpgraderType Type

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

name string

The dependency name.

startMinVersion string

The minimal initial version number this upgrader can work on.

targetVersion string

The target version number of this upgrader.

assetUpgraderType Type

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

Name

Gets or sets the dependency name.

public string Name { get; set; }

Property Value

string

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