Custom Global List (Photon)

Hi there,
I am new to Photon and I am looking for some feedback on how to engineer a particular lobby. Particular in that I want the player to be able to select an opponent, not just join a random room.

I am thinking I will need to assign or mandate a local player to create a playerProfile. This playerProfile, on enter lobby, will need to be added to a global list of all players currently online.

Further, this playerProfile needs to be applied to a button prefab.

My issue is, how do I create a custom List that is global to the all players?

I am a TOTAL photon noob (just switched from unet yesterday evening… But couldn’t remember my password, lol) but am I right in say I.g that you want a custom list type to be accesibke to all players?

If so, is it being created/designed/declared at runtime? If not then you should be able to declare the type in a script that all(server and client) have access to… Right? This would then allow the client to merely contact the server with their profile… Right? Or have I completely missed the point? I’ve missed the point, haven’t I? Lol

No, you fully get the point, but you have not answered the question in any way.

I am going to research the photon docs,

Cheers!

1 Like

Photon does not support online player listing in lobby, but it’s possible with db or custom server logic.

2 Likes

If the game is 1:1, you can name the room like the player who created it.
But when your game is popular and you have 1K CCUs, selecting another user from a list doesn’t make much sense anymore. This really only works for tight-knit communities where players know each other.

1 Like