0 votes

If A is the host, B and C are clients connected, if A creates a node and adds it to its scene tree, does it propagate to B and C? Does it work the other way as well?

Godot version v4.0.dev.custom_build [60add98a4]
in Engine by (29 points)

1 Answer

+1 vote
Best answer

I think the following:

If that nodes were created before the connection with the visual editor or with code, they will be in all devices, if the code allows it, but the nodes created after the connection will not be propagated. If you want to do it, you need to syncronize the variables with the rset function and do the functions (that functions must be declared with remote func) that you want in all devices using the rpc_unreliable function, both functions from GDScript.

I hope this will be useful for you.
MxtApps :-)

by (116 points)
selected by
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 Frequently asked questions and 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 [email protected] with your username.