EnabledRefRO<T>
Stores a safe reference to a read-only component enable bit.
Read time 1 minuteLast updated a day ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IQueryTypeParameter
public readonly struct EnabledRefRO<T> : IQueryTypeParameter where T : unmanaged, IEnableableComponent
Remarks
Do not store outside of stack
Constructors
Constructor | Description |
|---|---|
| EnabledRefRO`1(Unity.Entities.SafeBitRef) | Constructor for read-only 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). |
Static Properties
Property | Description |
|---|---|
| Null | Null value for this reference. |