Method GetComponentEnabledRefROOptional
GetComponentEnabledRefROOptional<T2>(Entity)
Obsolete. Use GetEnabledRefROOptional<T2>(Entity) instead.
Declaration
[Obsolete("This method has been renamed to GetEnabledRefROOptional<T>. (RemovedAfter Entities 1.0)", false)]
public EnabledRefRO<T2> GetComponentEnabledRefROOptional<T2>(Entity entity) where T2 : unmanaged, IComponentData, IEnableableComponent
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The referenced entity |
Returns
Type | Description |
---|---|
EnabledRefRO<T2> | Returns a safe reference to the component enabled state. If the component doesn't exist, returns a default EnabledRefRO<T>. |
Type Parameters
Name | Description |
---|---|
T2 | The component type |