Hello, please, could you help me with these questions?:
1- How do I choose the region of the photon server I want to connect to?
Set "Region" option in Photon object properties or call "Set region" action if you need to change region in runtime.
2 - Does Photon do this automatically and connect to the most convenient region ?.
No, best region selection is not supported currently in Photon js sdk and construct plugins
3 - When I use "Connect to the name server", am I connecting to a master server or a name server?
Client connects to name server first, then automatically to master server of region you specified.
I'm confused with this, what condition should I use to know if I'm connected to the photon server ?:
Is connected to master server
Is connected to name server
It seems that neither works, even though I am connected to the server.
Although I am connected in a room, these conditions are always true and the text is written.
Then, how do I check if I am connected to the photon server?
What exactly you need to know? You are connected to a server (name, master or game) while one of "Is connected to Nameserver", "Is connected to Master server", "Is connected to a lobby", "Is joined to a room" conditions is true. You may find more convenient to handle "On" events like "On join room".
"On state change event" is useful for client state tracing.
I received this error:
When I added this condition:
Can I give you some information to solve this?
You use "Is connected to a lobby" as an event but it's simple condition which called on each frame. Use "On join lobby" event instead. See samples bundled with plugins for details.