godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.12k stars 69 forks source link

Auto (re)build project when C# script changes #2920

Open MaaaxiKing opened 3 years ago

MaaaxiKing commented 3 years ago

Describe the project you are working on

Old game where I rewrite GDScript code in C#

Describe the problem or limitation you are having in your project

I always must rebuild my project after declaring an export variable in my Script and that's not obvious, I agonized my brain over this!

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Godot would rebuild the project everytime when a C# script changes, that means only after saving and if possible, only when the current version is not equal to the previous.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

It's not visual.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No

Is there a reason why this should be core and not an add-on in the asset library?

Yes, an add-on is too much effort for this basic thing.

Calinou commented 3 years ago

This requires implementing https://github.com/godotengine/godot-proposals/issues/849 and ideally https://github.com/godotengine/godot-proposals/issues/2231 first.

MikeSchulze commented 2 months ago

I run to day in the same issue, changing cs scripts inside Godot do not autorecompile it. If there is any way to force recompiling the class via engine functions?