Skip to content
ConcordConcordConcord

World:setResource

Sets a named resource on the World (singleton shared state, not an Entity Component).

← World

Sets a named resource on the World (singleton shared state, not an Entity Component).

Typical uses: services, asset handles, or frame context accessible from Systems.

world = world:setResource( name, resource )
Name Type Description
name string Name of the resource
resource any Resource to set
Name Type Description
world World