Class ProjectPrefs
- Namespace
- HomaGames.HomaBelly
- Assembly
- HomaGames.HomaBelly.Core.Editor.dll
[FilePath("ProjectSettings/Homa Games/ProjectPrefs.asset", FilePathAttribute.Location.ProjectFolder)]
public class ProjectPrefs : ScriptableSingleton<ProjectPrefs>
- Inheritance
-
ObjectScriptableObjectScriptableSingleton<ProjectPrefs>ProjectPrefs
- Inherited Members
-
ScriptableSingleton<ProjectPrefs>.GetFilePath()ScriptableSingleton<ProjectPrefs>.instanceScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Methods
IsToggleSet(string)
Gives the state of a toggle
[PublicAPI]
[Pure]
public static bool IsToggleSet(string key)
Parameters
keystringThe toggle's key
Returns
- bool
trueif the toggle is set,falseotherwise
SetToggle(string)
Sets a toggle
[PublicAPI]
public static void SetToggle(string key)
Parameters
keystringThe toggle's key
Set<T>(string, T)
Sets a value in the project preferences
[PublicAPI]
public static void Set<T>(string key, T value)
Parameters
keystringThe key to search for
valueTThe value to associate to the key
Type Parameters
TEither
bool,int,floatorstring
TryGet<T>(string, out T)
Retrieves a values from the project preferences
[ContractAnnotation("=>true; =>false, value: null")]
[Pure]
[PublicAPI]
public static bool TryGet<T>(string key, out T value)
Parameters
keystringThe key to search for
valueTThe output value
Returns
- bool
trueif the key is found in the preferences,falseotherwise
Type Parameters
TEither
bool,int,floatorstring
UnsetToggle(string)
Unsets a toggle
[PublicAPI]
public static void UnsetToggle(string key)
Parameters
keystringThe toggle's key
Unset<T>(string)
Unsets a value in the project preferences
[PublicAPI]
public static void Unset<T>(string key)
Parameters
keystringThe key to remove the associated value to
Type Parameters
TEither
bool,int,floatorstring