Godot Version
3.6
Question
There’s a Mono version of Godot that contains the .NET runtime for C# projects, and it’s possible to export without it if you’re only using GDScript.
I’m in the opposite situation - my game is C# only, so I’d like to export without the GDScript interpreter / libraries, in order to reduce my game’s file size; Especially for Web.
Is it possible? Does the core engine rely on GDScript in any way?
I am not sure if this is currently possible, maybe ask on the github as a pull request to see whether that is something they are working on.
However, I dont think this will ever be possible, because you will likely not reduce the size a lot.
This is the compile flag for gdscript.
module_gdscript_enabled = „no“
There is a Godot build options generator on github.
1 Like
Cool!
Does this mean I have to compile the Godot editor from source? Can I use the precompiled editor and only pass that option to my Game’s build?
You dont compile the editor directly. You build an export template. You can use Godot normal, but if you export your game, Godot excludes your „unwanted“ libraries.