PhotonView.ViewID doesn't exist?

Options

'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 2022
    Options

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


    Who knows. Sometimes things are just dumb I guess.