How do I get the current player's region?
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
How do I get the current player's region?
Meltdown
2017-04-20 08:14:08
I have the region set to 'Best' in PhotonServer settings. So it finds the best region for the player.
All good, but now how do I get the player's region in my C# code? I want to display it somewhere.
Thanks
Comments
Hi @Meltdown,
In PUN 1.82+ you can get the current player's region using PhotonNetwork.CloudRegion
.
@JohnTube wrote:
Hi @Meltdown,
In PUN 1.82+ you can get the current player's region using
PhotonNetwork.CloudRegion
.
Thanks a lot!
Back to top