Godot Version
4.4.1
Question
I’m using C#. When using packedScene.Instantiate() in a [Tool] script, the type returned is always the base type of the node, not the type specified in the node script.
Eg, if my packedScene root node is a NinePatchRect with a DoorSprite.cs script, the type returned from the Instantiate call is NinePatchRect, when I expected it to be DoorSprite. I cannot cast this returned instance to DoorSprite.
However, if I put the [Tool] attribute on the DoorSprite class, I do get the expected type returned (DoorSprite) from the Instantiate call.
Is this expected behaviour?