Method GetEnabledRefRO
GetEnabledRefRO<T2>(Entity)
Gets a safe reference to the component enabled state.
Declaration
public EnabledRefRO<T2> GetEnabledRefRO<T2>(Entity entity) where T2 : unmanaged, IEnableableComponent, IBufferElementData
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The referenced entity |
Returns
Type | Description |
---|---|
EnabledRefRO<T2> | Returns a safe reference to the component enabled state. Throws an exception if the component doesn't exist. |
Type Parameters
Name | Description |
---|---|
T2 | The component type |