Method SetEnabledBitsOnAllChunks
SetEnabledBitsOnAllChunks<T>(bool)
Obsolete. Use SetComponentEnabled<T>(EntityQuery, bool) instead.
Declaration
[Obsolete("This method has been deprecated. Use EntityManager.SetComponentEnabled<T>(Unity.Entities.EntityQuery, bool) instead. (RemovedAfter Entities 1.0)")]
public void SetEnabledBitsOnAllChunks<T>(bool value) where T : IEnableableComponent
Parameters
Type | Name | Description |
---|---|---|
bool | value | If true, the component |
Type Parameters
Name | Description |
---|---|
T | The component type which should be enabled or disabled on all matching chunks. This type must be included in the query's required types, and must implement IEnableableComponent. |
Remarks
Obsolete. Use SetComponentEnabled<T>(EntityQuery, bool) instead.
Sets or clears the "is enabled" bit for the provided component on all entities in all chunks matched by the query.
The current value of the bits are ignored; this function will enable disabled components on
entities, even if the component being disabled would cause the entity to not match the query. If any jobs
are currently running which read or write the target component, this function will block until they complete
before performing the requested operation.