GodotSharp.SourceGenerators
GodotSharp.SourceGenerators copied to clipboard
[SceneTree] does not work if the script is not part of a root scene node
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
node into a scene called UIOptionsGeneral.tscn
and move the UIOptionsGeneral.cs
script to be next to this scene however I would like to avoid this.