Class PresetAsset<T>
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
TThe preset's data type. Must be default-constructible and
[Serializable].
Expand Details ...
- Inheritance
-
objectObjectScriptableObjectPresetAsset<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