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().
Type Parameters
Section titled “Type Parameters”T extends AnyComponentDef
Parameters
Section titled “Parameters”component
Section titled “component”T
Returns
Section titled “Returns”MutWrapper<T>