:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/GodotInstance.xml. .. _class_GodotInstance: GodotInstance ============= **Inherits:** :ref:`Object` Provides access to an embedded Godot instance. .. rst-class:: classref-introduction-group 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. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------+----------------------------------------------------------------+ | |void| | :ref:`focus_in`\ (\ ) | +-------------------------+----------------------------------------------------------------+ | |void| | :ref:`focus_out`\ (\ ) | +-------------------------+----------------------------------------------------------------+ | :ref:`bool` | :ref:`is_started`\ (\ ) | +-------------------------+----------------------------------------------------------------+ | :ref:`bool` | :ref:`iteration`\ (\ ) | +-------------------------+----------------------------------------------------------------+ | |void| | :ref:`pause`\ (\ ) | +-------------------------+----------------------------------------------------------------+ | |void| | :ref:`resume`\ (\ ) | +-------------------------+----------------------------------------------------------------+ | :ref:`bool` | :ref:`start`\ (\ ) | +-------------------------+----------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_GodotInstance_method_focus_in: .. rst-class:: classref-method |void| **focus_in**\ (\ ) :ref:`🔗` Notifies the instance that it is now in focus. .. rst-class:: classref-item-separator ---- .. _class_GodotInstance_method_focus_out: .. rst-class:: classref-method |void| **focus_out**\ (\ ) :ref:`🔗` Notifies the instance that it is now not in focus. .. rst-class:: classref-item-separator ---- .. _class_GodotInstance_method_is_started: .. rst-class:: classref-method :ref:`bool` **is_started**\ (\ ) :ref:`🔗` Returns ``true`` if this instance has been fully started. .. rst-class:: classref-item-separator ---- .. _class_GodotInstance_method_iteration: .. rst-class:: classref-method :ref:`bool` **iteration**\ (\ ) :ref:`🔗` Runs a single iteration of the main loop. Returns ``true`` if the engine is attempting to quit. .. rst-class:: classref-item-separator ---- .. _class_GodotInstance_method_pause: .. rst-class:: classref-method |void| **pause**\ (\ ) :ref:`🔗` Notifies the instance that it is going to be paused. .. rst-class:: classref-item-separator ---- .. _class_GodotInstance_method_resume: .. rst-class:: classref-method |void| **resume**\ (\ ) :ref:`🔗` Notifies the instance that it is being resumed. .. rst-class:: classref-item-separator ---- .. _class_GodotInstance_method_start: .. rst-class:: classref-method :ref:`bool` **start**\ (\ ) :ref:`🔗` Finishes this instance's startup sequence. Returns ``true`` on success. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`