PhotonHandler execution order

Options
Hi,

I've seen that ::OnSerializeView is called inside PhotonHandler.Update() method.

PhotonHandler is a MonoBehaviour, so it's Update order is not defined (and no particular values are specified in ScriptExecutionOrder settings).

Is it correct? If PhotonHandler.Update() would be called at the end of the Update() loop, as last script, we'll get last updated values from each object. Otherwise, some update calls can arrive later...

Devis

Comments

  • Devis
    Options
    Any idea?
  • Tobias
    Options
    Hmmm, good point.
    You could define the script execution order for the project, if you needed this precise timing. In most cases, it should not be a big deal though. We only have 10 updates per second and unless frame rate is bad, the next frame will execute the updates just a bit later.