Click or drag to resize

MainLoop Fields

The MainLoop type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberNotificationAppPaused

Notification received from the OS when the app is paused.

Specific to the Android platform.

Public fieldStatic memberNotificationAppResumed

Notification received from the OS when the app is resumed.

Specific to the Android platform.

Public fieldStatic memberNotificationCrash

Notification received from Godot's crash handler when the engine is about to crash.

Implemented on desktop platforms if the crash handler is enabled.

Public fieldStatic memberNotificationOsImeUpdate

Notification received from the OS when an update of the Input Method Engine occurs (e.g. change of IME cursor position or composition string).

Specific to the macOS platform.

Public fieldStatic memberNotificationOsMemoryWarning

Notification received from the OS when the application is exceeding its allocated memory.

Specific to the iOS platform.

Public fieldStatic memberNotificationTranslationChanged

Notification received when translations may have changed. Can be triggered by the user changing the locale. Can be used to respond to language changes, for example to change the UI strings on the fly. Useful when working with the built-in translation support, like Tr(String).

Public fieldStatic memberNotificationWmAbout

Notification received from the OS when a request for "About" information is sent.

Specific to the macOS platform.

Public fieldStatic memberNotificationWmFocusIn

Notification received from the OS when the game window is focused.

Implemented on all platforms.

Public fieldStatic memberNotificationWmFocusOut

Notification received from the OS when the game window is unfocused.

Implemented on all platforms.

Public fieldStatic memberNotificationWmGoBackRequest

Notification received from the OS when a go back request is sent (e.g. pressing the "Back" button on Android).

Specific to the Android platform.

Public fieldStatic memberNotificationWmMouseEnter

Notification received from the OS when the mouse enters the game window.

Implemented on desktop and web platforms.

Public fieldStatic memberNotificationWmMouseExit

Notification received from the OS when the mouse leaves the game window.

Implemented on desktop and web platforms.

Public fieldStatic memberNotificationWmQuitRequest

Notification received from the OS when a quit request is sent (e.g. closing the window with a "Close" button or Alt+F4).

Implemented on desktop platforms.

Public fieldStatic memberNotificationWmUnfocusRequest

Notification received from the OS when an unfocus request is sent (e.g. another OS window wants to take the focus).

No supported platforms currently send this notification.

Top
See Also