Interface ISerializedBitArray
interface to handle generic SerializedBitArray
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public interface ISerializedBitArray
Properties
capacity
Capacity of the bitarray
Declaration
uint capacity { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
GetBitAt(uint)
Get the bit at given index
Declaration
bool GetBitAt(uint bitIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | bitIndex | The index |
Returns
| Type | Description |
|---|---|
| bool | Bit value |
HasBitMultipleDifferentValue(uint)
Does the bit at given index have multiple different values?
Declaration
bool HasBitMultipleDifferentValue(uint bitIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | bitIndex | The index |
Returns
| Type | Description |
|---|---|
| bool | True: Multiple different value |
SetBitAt(uint, bool)
Set the bit at given index
Declaration
void SetBitAt(uint bitIndex, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | bitIndex | The index |
| bool | value | The value |