@glassbottommeg@mastodon.gamedev.place
2026-08-08 21:01 UTC
Ok Godot people, so I got a named node dingus here, in the world. This code over here is in an Auto, meaning, auto-spawned node. It can't find the named thingy.
Why?
Does a named node have to be in the same "hierarchy"? And the Autos are separate so this doesn't work?
How should Autos find nodes?
Replies (2)
-
@glassbottommeg@mastodon.gamedev.place 2026-08-08 21:15
Ah HAH! Thanks all! (answer here) https://app.wafrn.net/fediverse/post/537e22ca-a5d0-4916-8a90-8ef9644c88d5
-
@sara_objectionable@app.wafrn.net 2026-08-08 21:06
@glassbottommeg@mastodon.gamedev.place Unique-name nodes are only accessible that way from objects that have the same owner. Presuming the hierarchy you're showing is the top-level scene, you should be able to get_tree().current_scene.get_node("%WorldEnvironment"), iirc