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

C# source generators for the Godot Game Engine

Results 12 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

I've added nullable annotations to the main project. There was a lot to change so I might have missed something, but I've tried my best to track what should be...

This would be useful for referencing and setting up singletons. There's seemingly an implementation of it [here](https://github.com/Metal-666/GodotUtilities). Basically, turn this: ```cs public partial class MyNode : Node { public static...

enhancement

Seeing as how there are already attributes for layer names and the input map, it would also be helpful to have a similar one for global group names (in ProjectSettings...

The way the repository is currently set up, it seems that in order to test your changes, you need to set up a local nuget repository in which you put...

I omitted writing the readme for the time being, as I wasn't sure if there were going to be any changes. If the design is accepted as is I could...