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. Dismiss Notice

Photon Chat problem

Discussion in 'Scripting' started by gagac42, Aug 4, 2020.

  1. gagac42

    gagac42

    Joined:
    Apr 24, 2018
    Posts:
    119
    Hello i need help with my chat problem pls help me anyone?

    my problem is from my message deleted if Player leaves the room .

    Exist anithing to not delete message? PLS help me ...

    Thanks
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,722
    Any objects owned by a player will be destroyed when that player leaves. You need to make it so the individual players don't own the messages. Use RPC or something and store the messages in a central list owned by the host or the room.
     
  3. gagac42

    gagac42

    Joined:
    Apr 24, 2018
    Posts:
    119
    Thanks chat work it