GetComponentData<T>()
Gets the value of the ComponentData T, an IComponentData, on this GameObject.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public T GetComponentData<T>() where T : unmanaged, IComponentData
Returns
Type | Description |
|---|---|
| T | A copy of the value. |
Remarks
Throws an if the GameObject has been destroyed or doesn't have the ComponentData.
ArgumentExceptionWaits for the jobs that write to complete. To avoid the wait, read in a job through a . The job then runs after the jobs that write , instead of the main thread waiting for them.
TTUnity.Entities.ComponentLookupT