EnabledRefRW<T>
Stores a safe reference to a read-writable component enable bit. Also keeps a pointer to the chunk disabled count, which is updated when the enabled bit is written to.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IQueryTypeParameter
public readonly struct EnabledRefRW<T> : IQueryTypeParameter where T : unmanaged, IEnableableComponent
Remarks
Do not store outside of stack
Constructors
Constructor | Description |
|---|---|
| EnabledRefRW`1(Unity.Entities.SafeBitRef,System.Int32*) | Constructor for writable enable reference to enableable component. |
Properties
Property | Description |
|---|---|
| IsValid | Property that returns true if the reference is valid, false otherwise. |
| ValueRO | Property to get enabled value of this reference (true if enabled, false otherwise). |
| ValueRW | Property to get or set enabled value of this reference (true if enabled, false otherwise). |
Static Properties
Property | Description |
|---|---|
| Null | Null value for this reference. |