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

Options
how to fix this sir ?

Comments

  • 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
    Options
    idont know how to set PhotonNetwork.AllocateViewID() at all ,,please help