Lecrapouille / gdcef

[Plugin][Version 0.13.0][Functional] Chromium Embedded Framework Webview for Godot 3 and 4
https://discord.gg/EckEwy7S5U
MIT License
268 stars 31 forks source link
cef chromium-embedded-framework gdnative gdnative-plugin godot godot-engine godot3 godot3-4 godot3-5 godotengine webview

Chromium Embedded Framework Webview for Godot

This repository contains the source code of C++ classes that wrap a subset of the Chromium Embedded Framework (CEF for short) API. These classes are compiled to be used either as a Godot 3.5 native module (GDNative) or a Godot 4.2 extension (GDExtension), allowing you to implement a webview in your 2D and 3D games through GDScript for Linux, Windows and macOS.

We have named this CEF module/extension gdcef. You can download it directly from the Godot Asset Library:

For users who don't want to compile this project themselves, pre-built artifacts are available at https://github.com/Lecrapouille/gdcef/releases

For developers: Since Godot 3.x GDNative and Godot 4.x GDExtension are not compatible, there are two branches:

Developer instructions:

Note: After discussions with some developers who only want to display their JS games without necessarily needing Godot, there is a better alternative: When compiling CEF, the build system also compiles a small CEF application that opens Google by default. You can modify it to launch your game (local or remote) as the default page. See this repository https://github.com/Lecrapouille/exa-application and adapt these lines for your application name (title) and URL.

Alternative Godot WebView Projects