Godot Chrome Documentation & Plugin Update
๐ Documentation Updates
๐ Creating an Embedded Chrome Browser
(1) Create an embedded Chrome browser in godot via gdscript with helloWorld(url, headers, enableJavascript, order, debugger)
Parameters:
url: String
โ The URL to load.
headers: Dictionary = Dictionary()
โ Custom HTTP headers.
enableJavaScript: Boolean = false
โ Enables JavaScript (default: false
for security reasons)
order : Int = -99
โ WebView layering order (-99 is the default overlay for UI and background renders).
debugger : Boolean = true
โ Stores console.log
messages that can be parsed in Godot.
๐ Other Methods:
(1) goodByeWorld()
โ Destroys the web view instance.
(2) getCurrentHeight()
โ Returns the height of the loaded HTML page as an integer.
(3) getTitle()
โ Returns the title of the loaded URL as a string.
(4) getProgress()
โ Returns the progress of the current page (1 - 100).
(5) consoleLog()
โ Prints JavaScript console.log()
entries to Godot as a dictionary. Also debugs the embedded Chrome instance status.
๐ Signals:
(1) connected
โ Emitted when an embedded browser instance is created.
(2) disconnected
โ Emitted when the embedded browser instance is destroyed.
๐ How To Use
(1) Download the Plugin: Download the .gdap
and .aar
precompiled release files from itchio at https://inhumanity-arts.itch.io/godotchrome
(2) Place them in your: res://project/android/plugin
(3) Enable the Plugin: In Export Settings in Godot Engine, enable Custom build and check GodotChrome plugin
(4) Initialize the Engine in Code: var Chrome = Engine.get_singleton("GodotChrome")
(5) Call Supported Methods on Your Chrome Instance Example : Chrome.helloWorld("<a href="https://example.com">https://example.com</a>", {}, true, -99, true)
๐ฅ Godot 4.4 Support
A Godot 4.4+ version would be made available for $1.99 to support maintenance and updates. This version will continue implementing Android WebKit API v1 calls. The Main Branch Uses v1 plugins for use in Godot 3.5.* branches to be maintained via CI/CD Devops pipelines
Files
Get GodotChrome
GodotChrome
Chrome Browser Embedded In Godot Engine. This Android Only Plugin Exposes an Embedded Webview Instance to gdscript
Status | Released |
Category | Tool |
Author | Inhumanity studios |
Leave a comment
Log in with itch.io to leave a comment.