Class PresetAsset<T>

Namespace
CodeSmile.AnyMotion.Core.Presets
/
Assembly
ApiSource.dll

Wraps one preset data type as a Unity asset. Unity's own asset serialization persists Data natively; no code here is needed for that. Text-based save/load — sharing a preset outside the project — is a separate concern handled by CodeSmile.AnyMotion.Core.SaveLoad, not by this class.

public abstract class PresetAsset<T> : ScriptableObject where T : new()

Type Parameters

T

The preset's data type. Must be default-constructible and [Serializable].

Expand Details ...
Inheritance
object
Object
ScriptableObject
PresetAsset<T>
Derived

Properties

Data

The wrapped preset data.

public T Data { get; set; }

Property Value

T

SchemaVersion

Schema version this asset was last saved with.

public int SchemaVersion { get; }

Property Value

int