Method HasBuffer
HasBuffer(Entity)
Reports whether the specified Entity instance still refers to a valid entity and that it has a buffer component of type T.
Declaration
public bool HasBuffer(Entity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
Returns
| Type | Description |
|---|---|
| bool | True if the entity has a buffer component of type T, and false if it does not. Also returns false if the Entity instance refers to an entity that has been destroyed. |