Website on godot

Godot Version

Godot 3,4

Question

I’m wondering if it’s possible to create a website on godot for the browser? If not, are there any plugins?

It’s a lot of work, and platform dependant but it is possible. Generally you would be adding WebKit to your project. There’s a closed Github issue on the subject with a few projects testing the idea.

1 Like

I wonder if it is possible to write a plugin in gdscript that converts the user interface into html and css…

Unfortunately outdated and very limited support:

Experimental native WebView control for Godot 3.2.x, works on macOS (WKWebView) and Windows (Edge WebView2).

It’s sad that this hasn’t been developed.

1 Like

Strictly speaking, Godot can be exported to HTML5 and run in a browser. How is a game fundamentally different from a website? So it probably can.

1 Like

If you’re referring to creating a website with Godot, it can technically be done with an exported project, but it’s not recommended for several reasons:

  • File size is much larger than a “native” website would be. At the very least, you’re looking at a download size of 5 MB for an exported project with no images.
  • Loading times will be much longer, and WebGL 2.0 support is required (WebGL 1.0 with Godot 3.x). Some of your users may not have WebGL support for various reasons (e.g. it can be broken due to graphics driver updates, or disabled for security reasons).
  • The website won’t be accessible to screen readers.
  • Search engines won’t be able to read the page’s contents, which will penalize your SEO.

In summary, use the right tool for the job. If you have a web-based Godot project, you’ll need a landing page that isn’t made with Godot (like https://editor.godotengine.org).

1 Like

This site I also couldn’t open on my e-book. :smile_cat: