DecayKnowledgebase
functiongenerated

World.spawn

Creates a new object from a prefab, a reusable template such as a bullet or an enemy, and gives it back so you can position it.

Signature

World.spawn(prefab: Prefab) -> Entity

Member of World

Related types

Entity

Source
docs/generated/decay-api.json
Schema
v1
Engine version
0.1.0
Source commit
909aca81368b