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

findEntityWorld

findEntityWorld(entity): World | undefined

The world that holds entity, read from the id koota packs into it, building no record as koota’s unpackEntity does: undefined for an entity its world destroyed, and once that world is destroyed. koota reuses a destroyed world’s id, so keep no entity past its world: its number may then name an entity of a later one. The world reads and never writes, as every world a game holds. As Unreal’s GetWorld and Godot’s get_tree.

Parameter Type
entity Entity

World | undefined