mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class EditorPreferences

    Convenience class for setting Editor Preferences with Application.productName as key prefix.

    Inheritance
    Object
    EditorPreferences
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public static class EditorPreferences

    Methods

    Get(String, Boolean)

    Get the saved Boolean from the EditorPrefs.

    Declaration
    public static bool Get(string key, bool defaultValue)
    Parameters
    Type Name Description
    String key
    Boolean defaultValue
    Returns
    Type Description
    Boolean

    Get(String, Int32)

    Get the saved Int32 from the EditorPrefs.

    Declaration
    public static int Get(string key, int defaultValue)
    Parameters
    Type Name Description
    String key
    Int32 defaultValue
    Returns
    Type Description
    Int32

    Get(String, Single)

    Get the saved Single from the EditorPrefs.

    Declaration
    public static float Get(string key, float defaultValue)
    Parameters
    Type Name Description
    String key
    Single defaultValue
    Returns
    Type Description
    Single

    Get(String, String)

    Get the saved String from theEditorPrefs.

    Declaration
    public static string Get(string key, string defaultValue)
    Parameters
    Type Name Description
    String key
    String defaultValue
    Returns
    Type Description
    String

    Set(String, Boolean)

    Set the saved Boolean from to EditorPrefs.

    Declaration
    public static void Set(string key, bool value)
    Parameters
    Type Name Description
    String key
    Boolean value

    Set(String, Int32)

    Set the saved Int32 from theEditorPrefs.

    Declaration
    public static void Set(string key, int value)
    Parameters
    Type Name Description
    String key
    Int32 value

    Set(String, Single)

    Set the saved Single from the EditorPrefs.

    Declaration
    public static void Set(string key, float value)
    Parameters
    Type Name Description
    String key
    Single value

    Set(String, String)

    Set the saved String from to EditorPrefs.

    Declaration
    public static void Set(string key, string value)
    Parameters
    Type Name Description
    String key
    String value
    In This Article
    • Methods
      • Get(String, Boolean)
      • Get(String, Int32)
      • Get(String, Single)
      • Get(String, String)
      • Set(String, Boolean)
      • Set(String, Int32)
      • Set(String, Single)
      • Set(String, String)
    Back to top Generated by DocFX