You are on page 1of 1

9/20/2016 https://docs.unity3d.com/uploads/Main/monobehaviour_flowchart.

svg

ResetiscalledintheEditorwhenthescriptisattachedorreset. Reset
Editor
Awake

OnEnable
Initialization
Startisonlyevercalledonceforagivenscript. Start

FixedUpdate
Thephysicscyclemayhappenmorethanonceperframeif
thefixedtimestepislessthantheactualframeupdatetime.
yieldWaitForFixedUpdate

Internalphysicsupdate
Physics
OnTriggerXXX

OnCollisionXXX

OnMouseXXX
Inputevents
Update

yieldnull
Ifacoroutinehasyieldedpreviouslybutisnowdueto yieldWaitForSeconds
resumethenexecutiontakesplaceduringthispartofthe
update. yieldWWW
yieldStartCoroutine Gamelogic
Internalanimationupdate
LateUpdate

OnWillRenderObject
OnPreCull
OnBecameVisible

Scenerendering
OnBecameInvisible
OnPreRender
OnRenderObject
OnPostRender
OnRenderImage

OnDrawGizmosisonlycalledwhileworkingintheeditor. OnDrawGizmos
Gizmorendering
OnGUIiscalledmultipletimeperframeupdate. OnGUI
GUIrendering

yieldWaitForEndOfFrame
Endofframe
OnApplicationPauseiscalledaftertheframewherethe
pauseoccursbutissuesanotherframebeforeactuallypausing.
.
OnApplicationPause
Pausing

OnDisableiscalledonlywhenthescriptwasdisabledduring
theframe.OnEnablewillbecalledifitisenabledagain.
OnDisable
Disable/enable

OnApplicationQuit

Decommissioning
OnDestroy

https://docs.unity3d.com/uploads/Main/monobehaviour_flowchart.svg 1/2

You might also like