Replies: 3 comments
-
|
Maybe it would be better if there was an option to just generate nodes as private properties by introducing a flag like [SceneTree("main_scene.tscn", generateAsProperties: true)]
public partial class MainScene
{
public override void _ready()
{
Player.Name = GetPlayerName();
}
} |
Beta Was this translation helpful? Give feedback.
-
|
I believe that could work as well. Note that feature is already present for nodes with unique names (the "%" operator) by default. I think there should be a global config file of some kind or perhaps even custom properties in the csproj file (if that's doable) to let you set defaults like these globally for the project. Maybe a workaround could be a static class with some kind of |
Beta Was this translation helpful? Give feedback.
-
|
Thanks all.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm inclined to agree with this sentiment. I think an appropriate renaming could be
NodesorSelf.Beta Was this translation helpful? Give feedback.
All reactions