Search Unity

Third Party [Photon Fusion] External sprite synchronization

Discussion in 'Multiplayer' started by williamsmolla, Feb 8, 2023.

  1. williamsmolla

    williamsmolla

    Joined:
    May 25, 2022
    Posts:
    1
    Hello everyone,
    We are building a multiplayer game using Photon Fusion inside Unity. In our game, we import a sprite sheet created by the player from a database and process it inside the game. The thing is: Since the sprite sheet is not included in the client build, it does appear in-game on the local client but not on the other clients when using the sprite renderer. Is there something I am missing out here ? Do we need to share some kind of byte array representing the .png over the network for the image synchronization? We absolutely need this feature.

    Thank you for your answers and your help !
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,937
    Yes. There's nothing in any of the networking libraries that will automatically transfer game data (assets) to other clients if that data wasn't included in the build.
     
  3. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,066
    Depending on the amount of data you could either stream it via Fusion (yes, as byte[]) or you could create an online database for such sprite sheets. When a file gets uploaded, it gets some ID. Share this in Fusion with others and every player can individually download the file as needed from a simple web server.