- Home /
Question by
alexdevAo · Feb 07, 2020 at 03:55 PM ·
networkingphoton
Why PhotonNetwork.Instantiate is Instantiate only on Editor?
When i test on unity editor i can see Player Instantiated on Unity editor, bur when i test on standalone, the Player is being instantiated but does not appear in the hierarchy
public void OnClick_CreateRoom()
{
if (!PhotonNetwork.IsConnected)
return;
RoomOptions options = new RoomOptions();
options.MaxPlayers = 2;
PhotonNetwork.JoinOrCreateRoom(_roomName.text, options, null);
gameController.isConnected = true;
PhotonNetwork.Instantiate(player.name, Vector3.zero, Quaternion.identity);
}
Comment
can you please try to describe your problem a bit more detailed? Did you check that your client really connects properly?
Your answer
![](https://koobas.hobune.stream/wayback/20220612222921im_/https://answers.unity.com/themes/thub/images/avi.jpg)