Question About PhotonNetwork.Destroy()

Options

I ran into an issue where I had too many photonviews due to some effects being instantiated into the scene. I hadn't got around to cleaning up. So now I have them being destroyed using PhotonNetwork.Destroy().


Question I have is, once destroyed it should clear up the view id right? I ask because after it's destroyed the next thing instantiated gets the next view id, so say the one I destroyed was 5, then the new one is 6. Does view ids continue to go up no matter what, but when at limit then go back to ones previously destroyed?

Best Answer

  • Tobias
    Tobias admin
    Answer ✓
    Options

    They go up until the range is fully used, then wrap around (and pick the non-used ones).

Answers

  • Tobias
    Tobias admin
    Answer ✓
    Options

    They go up until the range is fully used, then wrap around (and pick the non-used ones).

  • MrQuaid
    Options

    Thanks thats what I needed to know.