Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Music Sync with Photon

Discussion in 'Multiplayer' started by GameRickster, Feb 10, 2022.

  1. GameRickster


    Apr 28, 2018
    I have an animated band playing music that is triggered with the Timeline, it's multiplayer. How can I get the music synced when someone joins, the music is the same for everyone. Using Photon 2. Any help is appreciated.

    Right now the second player joins and can hear the music playing but it's not synced with the other multiplayer.
    Last edited: Feb 10, 2022
  2. tobiass


    Apr 7, 2009
    You can set a Custom Room Property with the server timestamp when the music started. This should be enough to play the same music at about the same time.

    This is not entirely perfectly synced, so expect to hear the gap when running multiple clients locally. It should be good enough for players in different places.