How i get my UserId or a player UserId?
Options
I used Custom Authentication. How i get my UserId retrieved from auth server? How i get UserId from
PhotonPlayer
of other player in the room (for example to add it to my friends)? 0
Best Answer
-
Getting
UserId
of other actors is not possible right now.PublishUserId
option was added toRoomOptions
for this purpose. I don't know if PUN has it already or not.
The solution is to sendUserId
as room or player property if you want to exchange it with others.5
Answers
-
Getting
UserId
of other actors is not possible right now.PublishUserId
option was added toRoomOptions
for this purpose. I don't know if PUN has it already or not.
The solution is to sendUserId
as room or player property if you want to exchange it with others.5 -
Let's keep that discussion on the other thread.0
-
Is there any update on whether the real UserId of other actors is or will be readable in the future? It seems to me that relying on the client to explicitly send userId as a player property is not secure, and could lead to impersonation etc.0