Class SerializedBitArray
Abstract base classe of all SerializedBitArray
Implements
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
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, int> |
SetBitAtIndexForAllTargetsImmediate
Set the bit at given index
Declaration
protected static Action<SerializedProperty, int, bool> SetBitAtIndexForAllTargetsImmediate
Field Value
Type | Description |
---|---|
Action<SerializedProperty, int, bool> |
m_SerializedProperty
The underlying serialized property
Declaration
protected SerializedProperty m_SerializedProperty
Field Value
Type | Description |
---|---|
SerializedProperty |
Properties
capacity
Capacity of the bitarray
Declaration
public uint capacity { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
GetBitAt(uint)
Get the bit at given index
Declaration
public bool GetBitAt(uint bitIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | bitIndex | The index |
Returns
Type | Description |
---|---|
bool | Bit value |
GetBitAt_Internal(uint)
Get the value at index
Declaration
protected abstract bool GetBitAt_Internal(uint bitIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | bitIndex | The index |
Returns
Type | Description |
---|---|
bool | Value at the index |
GetOrInitializeSerializedProperties()
Initialisation of dedicated SerializedPropertiws
Declaration
protected SerializedProperty[] GetOrInitializeSerializedProperties()
Returns
Type | Description |
---|---|
SerializedProperty[] | Arrays of SerializedProperty |
HasBitMultipleDifferentValue(uint)
Does the bit at given index have multiple different values?
Declaration
public bool HasBitMultipleDifferentValue(uint bitIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | bitIndex | The index |
Returns
Type | Description |
---|---|
bool | True: Multiple different value |
HasBitMultipleDifferentValue_For64Bits(string, SerializedProperty, uint)
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 |
uint | bitIndex |
Returns
Type | Description |
---|---|
bool |
HasBitMultipleDifferentValue_Internal(uint)
Say if the properties have differente values
Declaration
protected abstract bool HasBitMultipleDifferentValue_Internal(uint bitIndex)
Parameters
Type | Name | Description |
---|---|---|
uint | bitIndex | The index |
Returns
Type | Description |
---|---|
bool | True: properties have different value |
ResyncSerialization()
Sync again every serializedProperty
Declaration
protected void ResyncSerialization()
SetBitAt(uint, bool)
Set the bit at given index
Declaration
public void SetBitAt(uint bitIndex, bool value)
Parameters
Type | Name | Description |
---|---|---|
uint | bitIndex | The index |
bool | value | The value |
SetBitAt_Internal(uint, bool)
Set the bit at given index
Declaration
protected abstract void SetBitAt_Internal(uint bitIndex, bool value)
Parameters
Type | Name | Description |
---|---|---|
uint | bitIndex | The index |
bool | value | The value |
Update()
Sync the reflected value with target value change
Declaration
public void Update()