Relative Content

Tag Archive for unity-game-enginephoton

Cannot Connect to the Room by CustomRoomProperties

I am new to Photon pun2 development, i want to create a muliplayer game where when HOST create room it will come with a random String, which the other players have to insert to get into room. But in my implementations it is not working.
Also what is difference between a room and lobby

Unity Photon Fusion 2 client side player move issue

I’m using Photon Fusion NetworkCharacterController.The problem appears on client side. Feels like Player object just getting snaped back into starting position every frame and cannot move from point it stands at.
After debuging I found the problem is this line
moveDirection = mainCam.transform.TransformDirection(input);
PlayerController:

How do I use “OnDisconnected” in Unity Photon?

I’m studying to connect to a photon server in Unity, but when I shut down a photon server with a forced shutdown or a button
I’m trying to get the code to run at the bottom, and it works well with the OnLeftLobby callback function, but OnDisconnected
In the callback function, code cannot be executed and ends