Hey guys! I just got photon set up but I would like to know how to use it in JavaScript. I looked at the documents and examples but they’re all in C#!!! I would like my game to show groups of the games and have it so player’s can choose or start a group. Can I do that? Maybe even without photon? I don’t know please help me.

I know you just didn’t refer to Javascript as Java. OH NO YOU DIDN’T!!! YOU DIDN’T JUST GO THERE!!

All kidding aside, Java is not Javascript.

And you can definitely use Javascript with Photon on the client side, the new Photon API was designed to work very similarly to Unity’s Networking and a lot of examples used for Unity Networking are written in Javascript. It’s really going to come down to you knowing the differences between C# and Unity Javascript so you can transfer the code, since a lot of it doesn’t necessarily have to do with Photon itself.

One example would be the RPC calls;

Instead of [RPC], use @RPC.

However, MightyGoob is making a very good recommendation. Photon’s server side is written in C#, and C# is also used in other coding environments, not just Unity. Trust me, I’ve worked with both, one or two language features is a gross underestimation, there are tons of other pros that make C# a better language to work with and it’s not just coding preference. In your case, Photon’s server side is the biggest pro for using C#.