Passing data in Multiplayer - Convert String to Variable

Godot Version



When passing data to other peers you should not pass objects, in my case i work around it, by referecing the needed objects inside array or dictionary, like: { "key"} is a string

And passing it to the needed peer. But the problem is, its still a String you cant reference any nodes with it in that state.

My question:
Is there a way to convert Strings to make referencing possible?
Or are there other solutions with array/dicts?

If the object exists on both sides of the connection in the same hirachy you should try: known_node_parent.get_node(