+3 votes

What happens when you call a function remotely using Godot's high leveling networking, but passing objects (or object references) as a parameter? Is Godot able to match up the object with the equivalent object on the remote side (if available)? Or does it try to send the whole object? Or something else? Thank you!

in Engine by (107 points)
edited by

I assume it would not work because plain object references can't be matched from one client to another, unless you create a system to do so (like giving them IDs to recognize objects on every client, or sending them as values if IDs don't matter). Only nodes have a way to be identified somehow because they have a recognizable path which is (hopefully) the same on all clients.
But I never played with Godot networking yet so can't say much more.

Has anyone else answered this query? I'm fairly new to Godot and if somebody can answer this question, it would really be helpful! :)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.