Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readResource

readResource(world, key): FilledResourceSettings

The settings of the resource key on world, with regen, start and label filled in where its definition left them out: its definition’s, and for health the world’s registerHealth, or the engine’s where it registered none.

Parameter Type
world World
key ResourceKey

FilledResourceSettings