An open API service indexing awesome lists of open source software.

https://github.com/csharpredottools/sourcegenerators


https://github.com/csharpredottools/sourcegenerators

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# SourceGenerators

In order for prefab / scene enum gen to work the following needs to be added in the main Godot .csproj

```xml











```

## Switching Scenes
> [!IMPORTANT]
> You will need to restart your IDE if you want to see the new changes to the `Prefab` and `Scene` classes.

Any `.tscn` files placed in the following paths will be added to `Prefab` and `Scene` classes.

- **Prefab Resources**:
- **Search Path**: `res://**/Prefabs/**/*.tscn`
- **Associated Class**: `Prefab`

- **Scene Resources**:
- **Search Path**: `res://Scenes/**/*.tscn`
- **Associated Class**: `Scene`

**Example Usage**

```cs
Game.SwitchScene(Scene.UICredits);
Game.SwitchScene(Prefab.UIOptions);
```