Method HasChunkComponent
HasChunkComponent<T>(ref ComponentTypeHandle<T>)
Reports whether this chunk contains a chunk component of the specified component type.
Declaration
public readonly bool HasChunkComponent<T>(ref ComponentTypeHandle<T> typeHandle) where T : unmanaged, IComponentData
Parameters
Type | Name | Description |
---|---|---|
Component |
typeHandle | An object containing type and job safety information. To create this
object, call Get |
Returns
Type | Description |
---|---|
bool | True, if this chunk contains a chunk component of the specified type. |
Type Parameters
Name | Description |
---|---|
T | The data type of the chunk component. |
Remarks
When an Entity
See Also
HasChunkComponent<T>(ComponentTypeHandle<T>)
Obsolete. Use Has
Declaration
[Obsolete("The typeHandle argument should now be passed by ref. (RemovedAfter Entities 1.0)", false)]
public readonly bool HasChunkComponent<T>(ComponentTypeHandle<T> typeHandle) where T : unmanaged, IComponentData
Parameters
Type | Name | Description |
---|---|---|
Component |
typeHandle | An object containing type and job safety information. To create this
object, call Get |
Returns
Type | Description |
---|---|
bool | True, if this chunk contains a chunk component of the specified type. |
Type Parameters
Name | Description |
---|---|
T | The data type of the chunk component. |
HasChunkComponent<T>()
Reports whether this chunk contains a chunk component of the specified component type.
Declaration
public readonly bool HasChunkComponent<T>() where T : unmanaged, IComponentData
Returns
Type | Description |
---|---|
bool | True, if this chunk contains a chunk component of the specified type. |
Type Parameters
Name | Description |
---|---|
T | The data type of the chunk component. |
Remarks
When an Entity