Work in progress
Godot documentation is being updated to reflect the latest changes in version
4.0. Some documentation pages may
still state outdated information. This banner will tell you if you're reading one of such pages.
The contents of this page are up to date. If you can still find outdated information, please open an issue.
create_callback ( Callable callable )
create_object ( String object, ... ) vararg
download_buffer ( PackedByteArray buffer, String name, String mime="application/octet-stream" )
eval ( String code, bool use_global_execution_context=false )
force_fs_sync ( )
get_interface ( String interface )
pwa_needs_update ( ) const
pwa_update ( )
pwa_update_available ( )
Emitted when an update for this progressive web app has been detected but is waiting to be activated because a previous version is active. See pwa_update to force the update to take place immediately.
Variant create_object ( String object, ... ) vararg
new constructor. The
void download_buffer ( PackedByteArray buffer, String name, String mime="application/octet-stream" )
Prompts the user to download a file containing the specified
buffer. The file will have the given
Note: The browser may override the MIME type provided based on the file
Note: Browsers might block the download if download_buffer is not being called from a user interaction (e.g. button click).
Note: Browsers might ask the user for permission or block the download if multiple download requests are made in a quick succession.
Variant eval ( String code, bool use_global_execution_context=false )
Execute the string
true, the code will be evaluated in the global execution context. Otherwise, it is evaluated in the execution context of a function within the engine's runtime environment.
void force_fs_sync ( )
Force synchronization of the persistent file system (when enabled).
Note: This is only useful for modules or extensions that can't use FileAccess to write files.
bool pwa_needs_update ( ) const
true if a new version of the progressive web app is waiting to be activated.
Note: Only relevant when exported as a Progressive Web App.
Error pwa_update ( )
Performs the live update of the progressive web app. Forcing the new version to be installed and the page to be reloaded.
Note: Your application will be reloaded in all browser tabs.
Note: Only relevant when exported as a Progressive Web App and pwa_needs_update returns