World:setResource
Sets a named resource on the World (singleton shared state, not an Entity Component).
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 )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string | Name of the resource |
resource |
any | Resource to set |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
world |
World |