The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

JohnTube
2017-04-20 09:10:16

Hi @Meltdown,

In PUN 1.82+ you can get the current player's region using PhotonNetwork.CloudRegion.

DKReigns
2019-05-07 14:28:16

@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