docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct EditorPrefBoolFlags<T>

    Bool flag saved in EditorPref

    Implements
    IEquatable<T>
    IEquatable<EditorPrefBoolFlags<T>>
    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 EditorPrefBoolFlags<T> : IEquatable<T>, IEquatable<EditorPrefBoolFlags<T>> where T : struct, IConvertible
    Type Parameters
    Name Description
    T

    Underlying enum type

    Constructors

    Name Description
    EditorPrefBoolFlags(string)

    Constructor

    Properties

    Name Description
    rawValue

    The raw value

    value

    The value as the underlying enum type used

    Methods

    Name Description
    Equals(EditorPrefBoolFlags<T>)

    Test if this EditorPrefBoolFlags is the same than the given one

    Equals(T)

    Test if saved value is equal to the one given

    HasFlag(T)

    Test if the given flags are set

    SetFlag(T, bool)

    Set or unset the flags

    Operators

    Name Description
    operator &(EditorPrefBoolFlags<T>, T)

    And operator between a EditorPrefBoolFlags and a value

    operator |(EditorPrefBoolFlags<T>, T)

    Or operator between a EditorPrefBoolFlags and a value

    operator ^(EditorPrefBoolFlags<T>, T)

    Xor operator between a EditorPrefBoolFlags and a value

    explicit operator T(EditorPrefBoolFlags<T>)

    Explicit conversion operator to the underlying type

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)