IsComponentEnabled<T>()
Checks whether the enableable data component T, an IEnableableComponent, on the GameObject this Component is attached to is enabled.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool IsComponentEnabled<T>() where T : unmanaged, IEnableableComponent
Returns
Type | Description |
|---|---|
| bool | True if the data component is enabled. |
Remarks
Same as GameObject.IsComponentEnabled on Component.gameObject.
Throws an if the GameObject has been destroyed or doesn't have the data component.
ArgumentExceptionWaits for the jobs that write to complete. To avoid the wait, read in a job through a , or a for a Buffer. The job then runs after the jobs that write , instead of the main thread waiting for them.
TTUnity.Entities.ComponentLookupUnity.Entities.BufferLookupT