SetComponentEnabled(Entity, bool)
Obsolete. Use BufferLookup<T>.SetBufferEnabled instead.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public void SetComponentEnabled(Entity entity, bool value)
Parameters
Remarks
Obsolete. Use BufferLookup<T>.SetBufferEnabled instead.
Enable or disable the IBufferElementData of type T on the specified Entity. This operation does not cause a structural change (even if it occurs on a worker thread), or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. The type T must implement the IEnableableComponent interface.
Additional Resources: BufferLookup<T>.IsBufferEnabled