Table of Contents

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
Object
ScriptableObject
ScriptableSingleton<ProjectPrefs>
ProjectPrefs
Inherited Members
ScriptableSingleton<ProjectPrefs>.GetFilePath()
ScriptableSingleton<ProjectPrefs>.instance
ScriptableObject.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.name
Object.hideFlags

Methods

IsToggleSet(string)

Gives the state of a toggle

[PublicAPI]
[Pure]
public static bool IsToggleSet(string key)

Parameters

key string

The toggle's key

Returns

bool

true if the toggle is set, false otherwise

SetToggle(string)

Sets a toggle

[PublicAPI]
public static void SetToggle(string key)

Parameters

key string

The 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

key string

The key to search for

value T

The value to associate to the key

Type Parameters

T

Either bool, int, float or string

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

key string

The key to search for

value T

The output value

Returns

bool

true if the key is found in the preferences, false otherwise

Type Parameters

T

Either bool, int, float or string

UnsetToggle(string)

Unsets a toggle

[PublicAPI]
public static void UnsetToggle(string key)

Parameters

key string

The toggle's key

Unset<T>(string)

Unsets a value in the project preferences

[PublicAPI]
public static void Unset<T>(string key)

Parameters

key string

The key to remove the associated value to

Type Parameters

T

Either bool, int, float or string