Class ScriptableSettingsBase<T>
Base class for ScriptableSettings.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.XR.CoreUtils
Assembly: Unity.XR.CoreUtils.dll
Syntax
public abstract class ScriptableSettingsBase<T> : ScriptableSettingsBase where T : ScriptableObject
Type Parameters
Name | Description |
---|---|
T | The implementing type of ScriptableSettings. |
Constructors
ScriptableSettingsBase()
Initialize a new ScriptableSettingsBase.
Declaration
protected ScriptableSettingsBase()
Fields
BaseInstance
Singleton instance field.
Declaration
protected static T BaseInstance
Field Value
Type | Description |
---|---|
T |
HasCustomPath
Reports whether the class inheriting from ScriptableSettingsBase has a ScriptableSettingsPathAttribute defining a custom path for the asset.
Declaration
protected static readonly bool HasCustomPath
Field Value
Type | Description |
---|---|
bool |
Methods
GetFilePath()
Get the filename for this ScriptableSettings.
Declaration
protected static string GetFilePath()
Returns
Type | Description |
---|---|
string | The filename. |
Save(string)
Save this ScriptableSettings to an asset.
Declaration
protected static void Save(string savePathFormat)
Parameters
Type | Name | Description |
---|---|---|
string | savePathFormat | Format string for creating the path of the asset. |