How can I get current room's name with PUN 2

The whole answer can be found below.

Please note: 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! And we offer you support through 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 can I get current room's name with PUN 2

hugojobe
2021-02-19 12:58:39

Hello,

I'm making a multiplayer game with PUN 2 and I would like to display the room name in the method "OnJoinedRoom"
I serached during hours and I didn't find anything.

Can you help me please ?

Thanks in advance !

Comments

JohnTube
2021-02-19 14:59:21

Hi @hugojobe,

Thank you for choosing Photon!

PhotonNetwork.CurrentRoom.Name

I serached during hours and I didn't find anything.

I highly recommend you start PUN Basics Tutorial and complete it then start any other YouTube tutorial for PUN2 that is 'popular enough' and 'complete'. We list a few here.

Back to top