RemoveBuffer<T>()
Removes the Buffer of T elements, an IBufferElementData, from this GameObject.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool RemoveBuffer<T>() where T : unmanaged, IBufferElementData
Returns
Type | Description |
|---|---|
| bool | False if the GameObject didn't have the Buffer. |
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