- Home /
 
               Question by 
               mariappan001 · Apr 01, 2021 at 08:24 AM · 
                c#unityeditorphotonmmo  
              
 
              I am having issues with player spawning in a scene when a new client joins the room
I am developing a PUN Realtime project. I am getting this error when I try to instantiate an object(player). Can not Instantiate before the client joined/created a room. State: "PeerCreated". Also when I try to check the number of players in the room it shows as 0 but it should show 1. Here is my code
public override void OnJoinedRoom() { Debug.Log(lbc.PlayersInRoomsCount); Debug.Log("Game can start now"); PhotonNetwork.Instantiate(playerPrefab.name, sp.position, sp.rotation); } }
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                