After child scene instantiate,can't get it's child node

Godot Version

4.2.2

Question

After Spiece scene initialize,why can’t get Spiece’s child sprite2D node?
I can’t set texture to it.



what’s the scene tree lifecycle look like?

hi, me of the past,I am the future version.I found answer.
you should set sprite2d texture after addchild(piece).
as your lifecycle image say,addchild trigger enterTree.then, you could can get child node.

thank you ,the future me.

you’re welcome, the past me

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.