GodotSharp.SourceGenerators icon indicating copy to clipboard operation
GodotSharp.SourceGenerators copied to clipboard

C# source generators for the Godot Game Engine

Results 5 GodotSharp.SourceGenerators issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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__ =>...

bug

For example ```cs private Node _target; private bool _animate; [OnInstantiate] private void Init(Node target = null, bool animate = true) { _target = target; _animate = animate; } ```

bug

### 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`...

enhancement

![Untitled](https://github.com/user-attachments/assets/12af83bb-3e7a-43f2-b365-ba220be8a4d1) 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`...

enhancement