docs.unity.cn
    Show / Hide Table of Contents

    Class SerializedBitArrayAny

    Base class for SerializedBitArrays

    Inheritance
    Object
    SerializedBitArrayAny
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Rendering
    Syntax
    public sealed class SerializedBitArrayAny : ISerializedBitArray

    Properties

    capacity

    Capacity of the bitarray

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

    Methods

    ApplyModifiedProperties()

    Apply the reflected value onto targets

    Declaration
    public void ApplyModifiedProperties()

    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)

    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 for the given bit index

    Implements
    ISerializedBitArray.HasBitMultipleDifferentValue(UInt32)

    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)

    Update()

    Sync the reflected value with target value change

    Declaration
    public void Update()

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023