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

GodotChrome_Godot3.zip 15 kB
2 days ago
GodotChrome_Godot4.zip 16 kB
2 days ago

Get GodotChrome

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.