GodotSharp.SourceGenerators
GodotSharp.SourceGenerators copied to clipboard
C# source generators for the Godot Game Engine
Since C# 7, it's been possible to use the `_` character to [discard unused values](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards), but adding the `[SceneTree]` annotation to a class defines it as a field used to...
When I use [OnInstantiate], the code generated has an error in the resource path. It ends up with just 1 **/** after the **res:** ```csharp private static PackedScene __Scene__ =>...
For example ```cs private Node _target; private bool _animate; [OnInstantiate] private void Init(Node target = null, bool animate = true) { _target = target; _animate = animate; } ```
### My project is setup so scripts are separate from scene files I have always organized my project by having a `res://Scenes` folder for all `.tscn` files and a `res://Scripts`...
 I want to access `LanguageButton` with `[SceneTree]` attribute. However I cannot because `UIOptionsGeneral.cs` (the script attached to the node named "General") is not a scene. I could convert `General`...