PhotonView.ViewID doesn't exist?

'PhotonView' does not contain a definition for 'ViewID'


int projectileView = t_projectile.GetComponent<PhotonView>().ViewID;


I've tried viewID, ViewId, viewid, viewId, nothing works. For some reason, viewID seems to just not exist for me anymore and I have no idea why.


I can get sceneViewId but that does not seem to be the same thing.

Answers

  • Munty
    Munty
    edited May 13

    I fixed it by reimporting Pun, and now it works again. Why this happened?


    Who knows. Sometimes things are just dumb I guess.