How to sync world objects?

Options

I have an object which is in my scene and has an animator. I am wanting the animations changes (which are triggered by buttons) to be synced so that if one player presses the button then both players can see the animations change. I have trying to write a RPC and cant get it to work, the object has a photon view transform view and animator view.

Please help.

Answers

  • Tobias
    Options

    At the core, you only want to sync which animation is playing. It would help joining players to know when the animation started (the ServerTimestamp).

    In this case, I would possibly store both in Custom Room Properties and not use an RPC. Index the animations and set the related value via the buttons.