0% found this document useful (0 votes)
308 views

Unity Flowchart

The document is a flowchart showing the typical order of execution of methods in a MonoBehaviour script in Unity. It shows methods like Start, Update, FixedUpdate, etc and when they are called in relation to the game loop and physics updates. Key events like initialization, input handling, game logic, rendering, and pausing are represented at different points in the cycle.

Uploaded by

cippolippo123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
308 views

Unity Flowchart

The document is a flowchart showing the typical order of execution of methods in a MonoBehaviour script in Unity. It shows methods like Start, Update, FixedUpdate, etc and when they are called in relation to the game loop and physics updates. Key events like initialization, input handling, game logic, rendering, and pausing are represented at different points in the cycle.

Uploaded by

cippolippo123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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