Class SerializedBitArray
Abstract base classe of all SerializedBitArray
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
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
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
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
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()