https://github.com/apmem/godotfieldsgenerator
C# fields generator for godot scenes.
https://github.com/apmem/godotfieldsgenerator
Last synced: about 1 year ago
JSON representation
C# fields generator for godot scenes.
- Host: GitHub
- URL: https://github.com/apmem/godotfieldsgenerator
- Owner: ApmeM
- License: mit
- Created: 2022-04-06T10:15:42.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-16T11:00:54.000Z (over 1 year ago)
- Last Synced: 2025-01-30T00:28:33.571Z (over 1 year ago)
- Language: C#
- Size: 73.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GodotFieldsGenerator
C# fields generator for godot scenes.
Usage:
- Add references to GodotFieldsGenerator and GodotFieldsGeneratorAttributes to your godot project.
- Change scene root script class to be public partial
- Add [SceneReference("pathTo/scene.tscn")] attribute with relative path to scene file (including .tscn)
- Add this.FillMembers() method call to "_Ready" method
- Now you can use local class variables for scene nodes.
Example: