C# Godot 4 and HTML5 - possible when?

Godot Version

4.3

Question

I tried to export to html5 with Godot C# and it stated it wasn’t possible. Why is this?

I’m also wondering this. I see other posts where people are talking about the Javascript environment in Godot 4 and I can’t understand how they got that far since mine says you cant export to HTML 5 in Godot 4. Can anyone explain this confusion?

Does exporting to other platforms work i.e. do you have the export templates?

At the moment, only GDScript games can be exported to html. C# is not supported.

As stated in this article,

The web platform is still not supported in 4.2.

From what I know, this has not changed in 4.3.

This is still not possible in the latest version. Why?

Because it takes time to come up with an efficient solutions with C# that works on the web. Making games for HTML isn’t easy at all, but you’re more than welcome to contribute to the source code if you’d like to see this feature implemented sooner :slightly_smiling_face:

2 Likes

My job is not to contribute to a system that is supposed to be an all in one solution for game development that pruports to export to html5 but sneakily doesn’t tell you that it doesn’t include exporting to html5 with c#.

It’s godot 4.41 with c# support. Maybe they should quote it as it is and state that it has partial c# support. Then I wouldn’t have to keep coming here posting about why you can’t export to html5 with c# without some snarky comment from a fanboi.

From Calinou on that thread:

There are no C# export templates for HTML5 yet due to missing upstream support in .NET 6 (.NET 7 didn’t address this).

Looks like they are actively working on a fix for this.

I don’t know your development background, so maybe you already know this, but it’s hardly anyone’s job because this is an open source project that is mainly moving forward so quickly because all of the coding by unpaid volunteers.

As to the team being sneaky, that seems a bit harsh. The documentation on C# support clearly states that HTML 5 is not currently supported in Godot 4 and recommends using Godot 3 if you want C# support for HTML 5 right now. This information is also available in the documentation on C# basics, and the documentation for exporting to the web. The last one also points specifically to a post in an article about the state of C# support in Godot 4.2. It appears that the team is doing it’s best to communicate what is going on, give alternative solutions, and is actively working on the problem.

This isn’t really the place to post this. Github is. For this particular issue, the first link I provided above is the place to do that, because the people actually working on it will reply to you. I’d recommend signing up for GitHub if you don’t have an account and clicking the Subscribe button on the right-hand side of the page in the ticket. You’ll get email whenever there are updates to the issue.

I understand your frustration and disappointment. Hopefully I’ve provided enough information that you have more information and perhaps an alternative solution to your problem. If it doesn’t, I’m sorry about that. I am just someone who uses Godot and am contributing to the project in my own way by by answering questions on this forum to the best of my ability.

1 Like

The main contributors shared some news recently about .NET and web support : Live from GodotCon Boston: Web .NET prototype – Godot Engine

It’s in draft, I don’t think it will make it for 4.5, but they are working on it. You can also read in the article what are the issues they are having.

3 Likes

It looks like they’re doing some cool stuff. A few years ago, a full dotnet runtime was invented in Web Assembly so you can load compiled .dll files directly in the browser, without having to install an extension like Silverlight. I’m excited about what this means for game development. It should run many times faster than Javascript.

But ya, it’s different so that’s probably why it’s taking longer.

Your answer was quite passive aggressive to begin with. This is an open source project, nobody owes you a “working” build. Things take time, and most people do this in their free time, without any compensation.