RemoveComponentData<T>()
Removes the ComponentData T, an IComponentData, from this GameObject.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool RemoveComponentData<T>() where T : unmanaged, IComponentData
Returns
Type | Description |
|---|---|
| bool | False if the GameObject didn't have the ComponentData. |
Remarks
Throws an if the GameObject has been destroyed.
ArgumentExceptionThis is a structural change: it waits for all jobs in the World to complete. To make it from a job or a system without waiting, record it in a instead.
Unity.Entities.EntityCommandBuffer