AssetUpgraderBase Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
System.Object →
AssetUpgraderBase
Derived from AssetUpgraderBase: EmptyAssetUpgrader
public abstract class AssetUpgraderBase : IAssetUpgrader
Methods
SetSerializableVersion(Object, String, PackageVersion)
public static void SetSerializableVersion(dynamic asset, string dependencyName, PackageVersion value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | asset | |
System.String | dependencyName | |
Stride.Core.PackageVersion | value |
Upgrade(AssetMigrationContext, String, PackageVersion, PackageVersion, YamlMappingNode, PackageLoadingAssetFile)
public void Upgrade(AssetMigrationContext context, string dependencyName, PackageVersion currentVersion, PackageVersion targetVersion, YamlMappingNode yamlAssetNode, PackageLoadingAssetFile assetFile)
Parameters
Type | Name | Description |
---|---|---|
AssetMigrationContext | context | |
System.String | dependencyName | |
Stride.Core.PackageVersion | currentVersion | |
Stride.Core.PackageVersion | targetVersion | |
Stride.Core.Yaml.Serialization.YamlMappingNode | yamlAssetNode | |
PackageLoadingAssetFile | assetFile |
UpgradeAsset(AssetMigrationContext, PackageVersion, PackageVersion, Object, PackageLoadingAssetFile, OverrideUpgraderHint)
protected abstract void UpgradeAsset(AssetMigrationContext context, PackageVersion currentVersion, PackageVersion targetVersion, dynamic asset, PackageLoadingAssetFile assetFile, OverrideUpgraderHint overrideHint)
Parameters
Type | Name | Description |
---|---|---|
AssetMigrationContext | context | |
Stride.Core.PackageVersion | currentVersion | |
Stride.Core.PackageVersion | targetVersion | |
System.Object | asset | |
PackageLoadingAssetFile | assetFile | |
OverrideUpgraderHint | overrideHint |