Skip to main content

Class Settings<T>.SubSettings

Base class for settings contained by a Settings instance.

[Serializable]
public abstract class Settings<T>.SubSettings

Inheritance​

Methods​

OnValidate()​

Called when a setting is modified.

protected virtual void OnValidate()

Set<S>(ref S, S)​

Sets the specified setting to the desired value and marks the settings instance so that it will be saved.

protected void Set<S>(ref S setting, S value)

Parameters​

NameTypeDescription
settingSThe setting to modify.
valueSThe new value for the setting.

Type Parameters​

NameTypeDescription
SThe type of the setting.
  • Methods
    • OnValidate()
    • Set<S>(ref S, S)