Join Nostr
2025-10-28 15:31:44 UTC
in reply to

Yuri :godot: on Nostr: nprofile1q…wzjcm I just explained a use case two messages ago :) When you ...

I just explained a use case two messages ago :) When you instantiate the element's scene, you want to be able to set it up immediately:

var inst := PACKED_SCENE.instantiate()
inst.some_text = "Hi"

The setter for `some_text` can set the variable immediately, but cannot update the label immediately, because `onready` hasn't happened yet. But by the time you try to set `some_text` the nodes are actually already there and you can access them, you just have to do it by hand.