4.1 Photon Multiplayer Games

  • Please use our photon provided with it. It has some custom code added. ie. PhotonNetwork.Instantiate (). It has one more parameter added at last. You can check this method in a sample photon game.

  • We have one script PrepearePool.cs in the PhotonHelper folder. Use it to instantiate network objects.

  • How to use PrepearePool.cs

  • Add this script to a GO, and put all the objects in the list that you want to instantiate.

  • Now, If the prefab that you want to instantiate is not present in the resources folder after building assetbundle then it will not throw any error and will take that object from this pool. It's caching that object.

Last updated