update event problem

Hi,

I am using start event for generating 2 cameras at and after that i use update event to toggle between this 2 cameras. But my problem is that, whenever i load some animation or mathematical or physical calculation are activated, the update event is not updating in right sync. The new change goes for priority and update event goes on second or lower priority and so not getting proper sync in camera toggle.

How can i keep update event in priority even if i perform heavy task in my application.

thanks
rahu

Update will always be in sync with the frame rendering, what though is not guaranteed is the order in which update will happen on different game objects, so your code should never rely and assume stuff basing on it.
If you need to ensure basic order, then use SendMessage so you know that whatever you change won’t be changed in the current update cycle anymore so it does not impact it (alternatively use LateUpdate which is always called at the end so all update calls are processed for sure at that point)

Thanks dreamora,

I am quiet new to scripting and not full familiar with it, so if you do not mind, can you please provide more help on SendMessage and late update.

thanks
Rahu