Skip to content

ResMutInstance

Defined in: ecs/resource.ts:164

Write access to a resource, as ResMut asked for. get reads, set replaces, modify edits in place — and both writers store the value back and bump the change tick, which is the part Res cannot do.

T

get(): T

Defined in: ecs/resource.ts:173

T


modify(fn): void

Defined in: ecs/resource.ts:182

(value) => void

void


set(value): void

Defined in: ecs/resource.ts:177

T

void