Skip to content

Mut

Mut<T>(component): MutWrapper<T>

Defined in: ecs/query.ts:39

Ask a Query for write access to component.

An unwrapped engine component is yielded as a copy, so assigning to it changes nothing. Wrapped, the yielded data is written back to the world as iteration leaves the entity, and the component is marked changed for Changed().

T extends AnyComponentDef

T

MutWrapper<T>