Skip to content

API Interface InstantiateOptions

github-actions[bot] edited this page Nov 29, 2026 · 2 revisions

Interface: InstantiateOptions

Defined in: src/engine/core/GameObject.ts:15

Properties

name?

name?: string;

Defined in: src/engine/core/GameObject.ts:22


parent?

parent?: GameObject | null;

Defined in: src/engine/core/GameObject.ts:17

Parent node. Defaults to the active scene node (or the World root if no scene is loaded).


position?

position?: Vec3Input;

Defined in: src/engine/core/GameObject.ts:19

Local position of the new node's root.


rotation2D?

rotation2D?: number;

Defined in: src/engine/core/GameObject.ts:21

Local Z rotation in radians.

Clone this wiki locally