_ready function

Version 4.4

Hi all, I have a seemingly simple question:

I am confused about the ready function.
I have a scene with a script at the top level, for this discussion I have it simply print something.

When I include the (sub)-scene twice (or more) in my main scene I see my “print” output only once. Which seems to match the behavyI see in my game.

I expected the _ready function to be called for each sub-scene instance. What am I not understanding or doing wrong?

Every node’s _ready() function is called once when that node enters the scene tree, so there should have been two prints if your scene contained the (scene with the) node with that script twice. If that was the case and it didn’t, maybe you were running the wrong scene?

Post your scene structure and your code.

I spent quite a while on this issue the other day and couldn’t figure it out.
As Hyvernox pointed out I expected the _ready function to be executed twice,
but it wasn’t. That is why I eventually posted on this forum for an answer.
Today (a good nights sleep and a reboot later) it IS beiing called twice.

I am not aware that anything changed, but apparently something has or I am doing something differently. In any case: the issue is gone now.

thanks all