Class ScriptableSettingsBase
Internal base for all scriptable settings that is easier to look up via-reflection.
DO NOT USE THIS CLASS DIRECTLY - Use the generic version - ScriptableSettingsBase
Namespace: Unity.XRTools.Utils.Internal
Syntax
public abstract class ScriptableSettingsBase : ScriptableObject
Fields
k_PathExceptionMessage
Message to display when path is invalid
Declaration
protected const string k_PathExceptionMessage = "Exception caught trying to create path."
Field Value
Type | Description |
---|---|
String |
Methods
GetInstanceByType(Type)
Looks up the static 'instance' property of the given ScriptableSettings
Declaration
public static ScriptableSettingsBase GetInstanceByType(Type settingsType)
Parameters
Type | Name | Description |
---|---|---|
Type | settingsType | The type that refers to a singleton class, which implements an 'instance' property |
Returns
Type | Description |
---|---|
ScriptableSettingsBase | The actual singleton instance of the specified class |
OnLoaded()
Function called when all scriptable settings are loaded and ready for use
Declaration
protected virtual void OnLoaded()