Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

How to sync up created and destroyed gameobjects for late joining players

$
0
0
I'm looking to create a networked scene where late players can join and sync up to the current world state. That would be tracking any previously instantiated game objects, updating their transform/rotation/scale, and any extra stats.

I'm looking for an outline of the steps rather than explicit code.

I've made one attempt at this so far and the best I got was for the masterclient to boot and run fine, and any joining client to join, sync fine with other players, but all instantiated gameobjects would get generated at the root of the scene (not under the correct parent), resulting in them updating their transform based off the world space, rather than parent space. They wouldn't have any mesh either, the only way I could detect them was to add in debug.drawline to show their current transform in the world.

Thanks for the help.

Viewing all articles
Browse latest Browse all 15755

Trending Articles