Actor with number not found

Options
Hi
I am trying to set custom properties of a player but I get an error Actor with number not found.
I tried to check if inactive false but did not work.
I am using old sdk not the new one.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Eduard,

    You can only set properties of an actor joined to the room (active or inactive).
    Could you post the code snippet so we can know what you are talking about exactly?

    What PUN version are you using?
  • Eduard
    Options
    Hi @JohnTube
    I am using this code
    if (seat != null && !seat.Player.IsInactive)
                    {
                        seat.Player.SetCustomProperties(playerDataThatChanged);
                    }
    It throws the error anyway.
    Hope I was clear
  • Eduard
    Eduard
    edited August 2019
    Options
    I fixed it by storing state.
    As I said inactive does not work.
    It can be handled by moving set properties inside try catch .