Class EditorPrefs | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class EditorPrefs

    Inheritance
    Object
    EditorPrefs
    Namespace: UnityEditor.Experimental.EditorVR
    Syntax
    public class EditorPrefs

    Methods

    GetBool(String, Boolean)

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

    GetString(String)

    Declaration
    public static string GetString(string key)
    Parameters
    Type Name Description
    String key
    Returns
    Type Description
    String

    GetString(String, String)

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

    HasKey(String)

    Declaration
    public static bool HasKey(string key)
    Parameters
    Type Name Description
    String key
    Returns
    Type Description
    Boolean

    SetBool(String, Boolean)

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

    SetString(String, String)

    Declaration
    public static void SetString(string key, string value)
    Parameters
    Type Name Description
    String key
    String value
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023