ProjectPreferences Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Utility to save preferences that should be saved per project (i.e to source control) across MRTK. Supports primitive preferences bool, int, and float
public ref class ProjectPreferences : UnityEngine::ScriptableObject
public class ProjectPreferences : UnityEngine.ScriptableObject
type ProjectPreferences = class
inherit ScriptableObject
Public Class ProjectPreferences
Inherits ScriptableObject
- Inheritance
-
UnityEngine.ScriptableObjectProjectPreferences
Constructors
ProjectPreferences() |
Properties
FilePath |
Methods
Get(String, Boolean) |
Get bool from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get(String, Int32) |
Get int from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get(String, Single) |
Get float from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get(String, String) |
Get string from Project Preferences. If no entry found, then create new entry with provided defaultValue |
RemoveBool(String) |
Remove key item from preferences if applicable |
RemoveFloat(String) |
Remove key item from preferences if applicable |
RemoveInt(String) |
Remove key item from preferences if applicable |
RemoveString(String) |
Remove key item from preferences if applicable |
Set(String, Boolean, Boolean) |
Save bool to preferences and save to ScriptableObject with key given. |
Set(String, Int32, Boolean) |
Save int to preferences and save to ScriptableObject with key given. |
Set(String, Single, Boolean) |
Save float to preferences and save to ScriptableObject with key given. |
Set(String, String, Boolean) |
Save string to preferences and save to ScriptableObject with key given. |