ResMutInstance
此内容尚不支持你的语言。
Defined in: ecs/resource.ts:156
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.
Type Parameters
Section titled “Type Parameters”T
Methods
Section titled “Methods”get():
T
Defined in: ecs/resource.ts:165
Returns
Section titled “Returns”T
modify()
Section titled “modify()”modify(
fn):void
Defined in: ecs/resource.ts:174
Parameters
Section titled “Parameters”(value) => void
Returns
Section titled “Returns”void
set(
value):void
Defined in: ecs/resource.ts:169
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”void