Godot Version
4.5.1
Question
I downloaded godot .net from the official website. I decided to make a game based on the documentation, and when I started writing the first script, the inspector returned this error:

4.5.1
I downloaded godot .net from the official website. I decided to make a game based on the documentation, and when I started writing the first script, the inspector returned this error:

After writing C# scripts, click the “Build” (hammer) button in the Godot editor.
This won’t affect your normal usage—it’s just a gentle reminder. The editor can only recognize the methods and properties you’ve defined after C# is compiled. With GDScript, this happens in real-time. Since C# compilation takes time, it can’t recompile immediately after you modify a script, so you need to manually click build or debug/run the project to trigger compilation.