Class SerializedBitArray
Abstract base classe of all SerializedBitArray
Implements
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[Obsolete("Since SerializedBitArray unification, only use SerializedBitArrayAny. #from(23.2)")]
public abstract class SerializedBitArray : ISerializedBitArray
Fields
HasMultipleDifferentValuesBitwise
Has multiple differente value bitwise
Declaration
[Obsolete("Was only working under specific 32 bit mask size. Removed for disambiguisation. Use HasBitMultipleDifferentValueBitwise_For64BitsOrLess instead. #from(23.2)")]
protected static Func<SerializedProperty, int> HasMultipleDifferentValuesBitwise
Field Value
Type | Description |
---|---|
Func<SerializedProperty, int> |
SetBitAtIndexForAllTargetsImmediate
Set the bit at given index
Declaration
[Obsolete("Was only working under specific 32 bit mask size. Removed for disambiguisation. Use SetBitAt instead. #from(23.2)")]
protected static Action<SerializedProperty, int, bool> SetBitAtIndexForAllTargetsImmediate
Field Value
Type | Description |
---|---|
Action<SerializedProperty, int, bool> |
m_SerializedProperty
The underlying serialized property
Declaration
[Obsolete("As it is required to discompose per target to isolate works per bit, this cannot be used when there is multiple selection. #from(23.2)")]
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
[Obsolete("Replaced by GetBitAt that now works for all IBitArray implementations. #from(23.2)")]
protected virtual 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
[Obsolete("Use m_SerializedProperty only to prevent desynchronisation between objects #from(23.2)")]
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 for the given bit index |
HasBitMultipleDifferentValue_For64Bits(string, SerializedProperty, uint)
Safety: serializedProperty must match its path
Declaration
[Obsolete("Replaced by HasBitMultipleDifferentValue that now works for all IBitArray implementations. #from(23.2)")]
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
[Obsolete("Replaced by an autocasting to 64 bit buckets for all IBitArray. Now difference computation is not implementation specific anymore #from(23.2)")]
protected virtual 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_For64Bits(SerializedProperty, uint, bool)
Update all the targets at specific bit index only
Declaration
[Obsolete("Replaced by SetBitAt that now works for all IBitArray implementations. #from(23.2)")]
protected void SetBitAt_For64Bits(SerializedProperty serializedProperty, uint bitIndex, bool value)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | serializedProperty | The serializedProperty to update |
uint | bitIndex | Index to assign the value |
bool | value | Boolean value that the bit should be updated to |
SetBitAt_Internal(uint, bool)
Set the bit at given index
Declaration
[Obsolete("Replaced by SetBitAt that now works for all IBitArray implementations. #from(23.2)")]
protected virtual 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()