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

[SceneTree] does not work if the script is not part of a root scene node

Open valkyrienyanko opened this issue 5 months ago • 3 comments

Untitled

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.

valkyrienyanko avatar Sep 22 '24 19:09 valkyrienyanko