Class SerializedBitArray | Core RP Library | 8.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class SerializedBitArray

    Abstract base classe of all SerializedBitArray

    Inheritance
    Object
    SerializedBitArray
    SerializedBitArray128
    SerializedBitArray16
    SerializedBitArray256
    SerializedBitArray32
    SerializedBitArray64
    SerializedBitArray8
    Namespace: UnityEditor.Rendering
    Syntax
    public abstract class SerializedBitArray : ISerializedBitArray

    Fields

    HasMultipleDifferentValuesBitwise

    Has multiple differente value bitwise

    Declaration
    protected static Func<SerializedProperty, int> HasMultipleDifferentValuesBitwise
    Field Value
    Type Description
    Func<SerializedProperty, Int32>

    m_SerializedProperty

    The underlying serialized property

    Declaration
    protected SerializedProperty m_SerializedProperty
    Field Value
    Type Description
    SerializedProperty

    SetBitAtIndexForAllTargetsImmediate

    Set the bit at given index

    Declaration
    protected static Action<SerializedProperty, int, bool> SetBitAtIndexForAllTargetsImmediate
    Field Value
    Type Description
    Action<SerializedProperty, Int32, Boolean>

    Properties

    capacity

    Capacity of the bitarray

    Declaration
    public uint capacity { get; }
    Property Value
    Type Description
    UInt32
    Implements
    ISerializedBitArray.capacity

    Methods

    GetBitAt(UInt32)

    Get the bit at given index

    Declaration
    public bool GetBitAt(uint bitIndex)
    Parameters
    Type Name Description
    UInt32 bitIndex

    The index

    Returns
    Type Description
    Boolean

    Bit value

    Implements
    ISerializedBitArray.GetBitAt(UInt32)

    GetBitAt_Internal(UInt32)

    Get the value at index

    Declaration
    protected abstract bool GetBitAt_Internal(uint bitIndex)
    Parameters
    Type Name Description
    UInt32 bitIndex

    The index

    Returns
    Type Description
    Boolean

    Value at the index

    GetOrInitializeSerializedProperties()

    Initialisation of dedicated SerializedPropertiws

    Declaration
    protected SerializedProperty[] GetOrInitializeSerializedProperties()
    Returns
    Type Description
    SerializedProperty[]

    Arrays of SerializedProperty

    HasBitMultipleDifferentValue(UInt32)

    Does the bit at given index have multiple different values?

    Declaration
    public bool HasBitMultipleDifferentValue(uint bitIndex)
    Parameters
    Type Name Description
    UInt32 bitIndex

    The index

    Returns
    Type Description
    Boolean

    True: Multiple different value

    Implements
    ISerializedBitArray.HasBitMultipleDifferentValue(UInt32)

    HasBitMultipleDifferentValue_For64Bits(String, SerializedProperty, UInt32)

    Safety: serializedProperty must match its path

    Declaration
    protected bool HasBitMultipleDifferentValue_For64Bits(string propertyPath, SerializedProperty serializedProperty, uint bitIndex)
    Parameters
    Type Name Description
    String propertyPath

    serializedProperty must match its path

    SerializedProperty serializedProperty

    serializedProperty must match its path

    UInt32 bitIndex
    Returns
    Type Description
    Boolean

    HasBitMultipleDifferentValue_Internal(UInt32)

    Say if the properties have differente values

    Declaration
    protected abstract bool HasBitMultipleDifferentValue_Internal(uint bitIndex)
    Parameters
    Type Name Description
    UInt32 bitIndex

    The index

    Returns
    Type Description
    Boolean

    True: properties have different value

    ResyncSerialization()

    Sync again every serializedProperty

    Declaration
    protected void ResyncSerialization()

    SetBitAt(UInt32, Boolean)

    Set the bit at given index

    Declaration
    public void SetBitAt(uint bitIndex, bool value)
    Parameters
    Type Name Description
    UInt32 bitIndex

    The index

    Boolean value

    The value

    Implements
    ISerializedBitArray.SetBitAt(UInt32, Boolean)

    SetBitAt_Internal(UInt32, Boolean)

    Set the bit at given index

    Declaration
    protected abstract void SetBitAt_Internal(uint bitIndex, bool value)
    Parameters
    Type Name Description
    UInt32 bitIndex

    The index

    Boolean value

    The value

    Update()

    Sync the reflected value with target value change

    Declaration
    public void Update()
    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