Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

GodotInstance๏ƒ

Inherits: Object

Provides access to an embedded Godot instance.

Description๏ƒ

GodotInstance represents a running Godot instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API libgodot_create_godot_instance. Only one may be created per process.

Methods๏ƒ

void

focus_in()

void

focus_out()

bool

is_started()

bool

iteration()

void

pause()

void

resume()

bool

start()


Method Descriptions๏ƒ

void focus_in() ๐Ÿ”—

Notifies the instance that it is now in focus.


void focus_out() ๐Ÿ”—

Notifies the instance that it is now not in focus.


bool is_started() ๐Ÿ”—

Returns true if this instance has been fully started.


bool iteration() ๐Ÿ”—

Runs a single iteration of the main loop. Returns true if the engine is attempting to quit.


void pause() ๐Ÿ”—

Notifies the instance that it is going to be paused.


void resume() ๐Ÿ”—

Notifies the instance that it is being resumed.


bool start() ๐Ÿ”—

Finishes this instance's startup sequence. Returns true on success.