Question by
Boxprintz · Aug 13, 2021 at 02:53 AM ·
photoninstantiate prefab
Instantiated gameObject on photon network is null
GameObject militaryUnit = PhotonNetwork.InstantiateRoomObject(prefabName, position, rotation) as GameObject; Debug.Log(militaryUnit);
Output: null
That is if you are not the master client. The gameobject are all instantiated to the scene though. Does anyone have any idea what the problem could be?
Comment
Your answer
Follow this Question
Related Questions
need help with code 1 Answer
Objects don't instantiate after level reload. 0 Answers
destroy prefab over time 0 Answers