The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Illegal view ID:0 method: how to fix this sir ?

2018-09-17 02:04:38

how to fix this sir ?


[Deleted User]
2018-09-18 09:22:43

Hi @afa,

the problem is, that the PhotonView component is not set up properly. If you are using PhotonNetwork.Instantiate or PhotonNetwork.InstantiateSceneObject, the attached PhotonView component is set up properly. If you are using Manual Instantiation, make sure to call PhotonNetwork.AllocateViewID() and assign the ViewId to the PhotonView.

2019-10-31 20:17:19

idont know how to set PhotonNetwork.AllocateViewID() at all ,,please help

Back to top