docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct EditorPrefBool

    Bool saved in EditorPref.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public struct EditorPrefBool

    Constructors

    EditorPrefBool(string, bool)

    Constructor

    Declaration
    public EditorPrefBool(string key, bool defaultValue = false)
    Parameters
    Type Name Description
    string key

    Key in the editor preferences.

    bool defaultValue

    Default value of the preference.

    Properties

    value

    Value of the boolean in editor preferences.

    Declaration
    public bool value { get; set; }
    Property Value
    Type Description
    bool

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)