Function FollowerEntityProxy.ToggleComponentEnabled
ToggleComponentEnabled<T>
(World world, Entity entity, bool enabled, bool throwIfMissing)
Enables or disables a component on an entity.
Internal
Static
void ToggleComponentEnabled<T> (
World | world | The ECS world containing the entity. |
Entity | entity | The entity to modify. |
bool | enabled | If true, enables the component. If false, disables it. |
bool | throwIfMissing | If true, throws an InvalidOperationException if the entity does not exist. If false, silently returns. |
Enables or disables a component on an entity.