Is there a way to get a specific node from a packed scene?

Godot Version

Godot 4.4

Question

Ive been trying to get a specific node from a packed scene. Im using a spawner handler to follow a path3d and path3d follow node. Is there a way to reference those nodes inside my packed scene? Scene tree looks like this inside the packed scene:

Or would it just be easier to attach my handler directly to each path3D? if so will this cause any extra spawning issues for having multiples of the same script active? Thanks in advanced im really new to using handlers/ components.

I do not really understand what you are trying to ask here, PackedScene is just a representation of your scene that is packed (serialized) in a file. As such Godot does not expose any methods for editing it. If you want to read from it without instantiating the scene there is a get_state() function on it that returns it’s state but as I mentioned before you can only read from it.

1 Like