playerName PhotonViews RPC & IsMine
Options
Hello !
I use PUN and successfully instantiate as players as I want.
I use a GameObject "emoticon" whic is set to children of the player (PhotonNetwork.playerName) with "transform.parent".
The problem is, when I have multiple players, the "emoticon" is not set on the current player.
I guess this is a problem with PunRPC's and view.isMine. I don't know.
Thanks !
I use PUN and successfully instantiate as players as I want.
I use a GameObject "emoticon" whic is set to children of the player (PhotonNetwork.playerName) with "transform.parent".
The problem is, when I have multiple players, the "emoticon" is not set on the current player.
I guess this is a problem with PunRPC's and view.isMine. I don't know.
Thanks !
0
Best Answer
-
After some work, it's working well. The trick was to assigne the PhotonNetwork.playerName using a view.isMine.
Hope it helps5
Answers
-
After some work, it's working well. The trick was to assigne the PhotonNetwork.playerName using a view.isMine.
Hope it helps5