Illegal view ID

The whole answer can be found below.

Please note: 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! And we offer you support through these channels:

Try Our
Documentation

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.

Read More on
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 ?

afa
2018-09-17 02:04:38

how to fix this sir ?

Comments

[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.

afa
2019-10-31 20:17:19

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

Back to top