Class ScriptableSettingsProviderBase<T>
Base class for ScriptableSettingsProvider, which exposes a ScriptableSettings type as a settings provider
Namespace: UnityEditor.XRTools.Utils.Internal
Syntax
public abstract class ScriptableSettingsProviderBase<T> : SettingsProvider where T : ScriptableSettingsBase<T>
Type Parameters
| Name | Description |
|---|---|
| T | The ScriptableSettings type which will be exposed |
Constructors
ScriptableSettingsProviderBase(String, SettingsScope)
Initialize a new ScriptableSettingsProviderBase
Declaration
protected ScriptableSettingsProviderBase(string path, SettingsScope scope)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to this settings view within the Preferences or Project Settings window |
| SettingsScope | scope | The scope of these settings |
Fields
s_SerializedObject
Cache field for serializedObject property
Declaration
protected static SerializedObject s_SerializedObject
Field Value
| Type | Description |
|---|---|
| SerializedObject |
s_Target
Cache field for target property
Declaration
protected static T s_Target
Field Value
| Type | Description |
|---|---|
| T |
Methods
GetSerializedSettings()
Initialize this settings object and return a SerializedObject wrapping it
Declaration
protected static SerializedObject GetSerializedSettings()
Returns
| Type | Description |
|---|---|
| SerializedObject | The SerializedObject wrapper |