Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

How to use PhotonNetwork.Instantiate with Object Data

$
0
0
public static GameObject Instantiate(string prefabName, Vector3 position, Quaternion rotation, int group, object[] data)

How can I use this to also contains the custom data for PhotonObject?
I created my bullet which contains PhotonView and I need to set some properties of my bullet so it is sync with all the clients. How can I get the data back from other client? It's quite easy to get the data for RPC calls but I have no idea of how can I set custom data with Instantiate.. :)

I really appreciate for any helps..

Viewing all articles
Browse latest Browse all 15755

Latest Images

Trending Articles



Latest Images