GetEnabledRefRO<T2>(Entity)
Gets a safe reference to the component enabled state.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetEnabledRefRO<T>(Entity)
public EnabledRefRO<T2> GetEnabledRefRO<T2>(Entity entity) where T2 : unmanaged, IEnableableComponent, IBufferElementData
Parameters
The referenced entity
Returns
Type | Description |
|---|---|
| EnabledRefRO<T> | Returns a safe reference to the component enabled state. Throws an exception if the component doesn't exist. |