ScriptableValue Class
Definition
Section titled “Definition”Base class for all ScriptableValue<T>.
[HelpURL("https://hertzole.github.io/scriptable-values/types/scriptable-value")]public abstract class ScriptableValue : RuntimeScriptableObject, INotifyPropertyChanging, INotifyPropertyChanged, IStackTraceProvider, ICanBeReadOnlyInheritance object → UnityEngine.Object → UnityEngine.ScriptableObject → RuntimeScriptableObject
Implements INotifyPropertyChanging, INotifyPropertyChanged, IStackTraceProvider, ICanBeReadOnly
Remarks
Section titled “Remarks”You should probably inherit from ScriptableList<T> instead.
Fields
Section titled “Fields”isReadOnlyChangingArgs
Section titled “isReadOnlyChangingArgs”public static readonly PropertyChangingEventArgs isReadOnlyChangingArgsisReadOnlyChangedArgs
Section titled “isReadOnlyChangedArgs”public static readonly PropertyChangedEventArgs isReadOnlyChangedArgsresetValueOnStartChangingArgs
Section titled “resetValueOnStartChangingArgs”public static readonly PropertyChangingEventArgs resetValueOnStartChangingArgsresetValueOnStartChangedArgs
Section titled “resetValueOnStartChangedArgs”public static readonly PropertyChangedEventArgs resetValueOnStartChangedArgssetEqualityCheckChangingArgs
Section titled “setEqualityCheckChangingArgs”public static readonly PropertyChangingEventArgs setEqualityCheckChangingArgssetEqualityCheckChangedArgs
Section titled “setEqualityCheckChangedArgs”public static readonly PropertyChangedEventArgs setEqualityCheckChangedArgsvalueChangingArgs
Section titled “valueChangingArgs”public static readonly PropertyChangingEventArgs valueChangingArgsvalueChangedArgs
Section titled “valueChangedArgs”public static readonly PropertyChangedEventArgs valueChangedArgspreviousValueChangingArgs
Section titled “previousValueChangingArgs”public static readonly PropertyChangingEventArgs previousValueChangingArgspreviousValueChangedArgs
Section titled “previousValueChangedArgs”public static readonly PropertyChangedEventArgs previousValueChangedArgsdefaultValueChangingArgs
Section titled “defaultValueChangingArgs”public static readonly PropertyChangingEventArgs defaultValueChangingArgsdefaultValueChangedArgs
Section titled “defaultValueChangedArgs”public static readonly PropertyChangedEventArgs defaultValueChangedArgsProperties
Section titled “Properties”IsReadOnly
Section titled “IsReadOnly”If read only, the value cannot be changed at runtime.
[CreateProperty]public bool IsReadOnly { get; set; }ResetValueOnStart
Section titled “ResetValueOnStart”If true, the value will be reset to the default value on play mode start/game boot.
[CreateProperty]public bool ResetValueOnStart { get; set; }SetEqualityCheck
Section titled “SetEqualityCheck”If true, an equality check will be run before setting the value to make sure the new value is not the same as the old one.
[CreateProperty]public bool SetEqualityCheck { get; set; }