API Reference › Prefab › Prefab.spawn_at
method

Prefab.spawn_at

Prefab.spawn_at(name: s, at: IVec2) -> entity

Prefab.spawn followed by writing the new entity's Position — the common case in one call.

Example

# doc-check: skip — illustrative
let foe = Prefab.spawn_at(name: "Grunt", at: IVec2.make(60, 60))
← All symbols