跳到主要内容

Class SettingValue

Represents a settable value.

Events

onValueChanged

public event Action onValueChanged;

Properties

defaultValue

public T defaultValue { get; private set; }

value

public T value { get; set; }

Constructors

SettingValue(T defaultValue)

public SettingValue(T defaultValue)

Methods

Reset()

public void Reset()

ResetWithoutNotify()

public void ResetWithoutNotify()

SetValueWithoutNotify(T newValue)

public void SetValueWithoutNotify(T newValue)

ToString()

public override string ToString()

Equals(object obj)

public override bool Equals(object obj)

Equals(SettingValue<T> other)

public bool Equals(SettingValue<T> other)

GetHashCode()

public override int GetHashCode()