AllocateManualPhotonView









How do I use Allocate Manual Photon View
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: ManualPhotonViewAllocator.cs Copy
9     public void AllocateManualPhotonView()
10     {
11         PhotonView pv = this.gameObject.GetPhotonView();
12         if (pv == null)
13         {
14             Debug.LogError("Can't do manual instantiation without PhotonView component.");
15             return;
16         }
17
18         int viewID = PhotonNetwork.AllocateViewID();
19         pv.RPC("InstantiateRpc", PhotonTargets.AllBuffered, viewID);
20     }

AllocateManualPhotonView 116 lượt xem

Gõ tìm kiếm nhanh...