Skip to content

Res

Res<T>(resource): ResDescriptor<T>

Defined in: ecs/resource.ts:130

Ask a system for read access to a resource: the world’s single instance of resource, passed to the system body as the stored value itself.

Not a copy — an object resource’s fields are reachable through it. Replacing the value, and the change tick recording it, is what ResMut is for.

T

ResourceDef<T>

ResDescriptor<T>