{"id":2044,"date":"2023-01-03T12:22:16","date_gmt":"2023-01-03T11:22:16","guid":{"rendered":"https:\/\/www.edy.es\/dev\/?page_id=2044"},"modified":"2024-02-12T16:13:28","modified_gmt":"2024-02-12T15:13:28","slug":"a-comprehensive-guide-to-the-execution-order-of-unity-event-functions","status":"publish","type":"page","link":"https:\/\/www.edy.es\/dev\/docs\/a-comprehensive-guide-to-the-execution-order-of-unity-event-functions\/","title":{"rendered":"A Comprehensive Guide to the Execution Order of Unity Event Functions"},"content":{"rendered":"<p>This guide illustrates the actual order of execution of the main Unity event functions, as well as the considerations for each one. It also includes essential information to help you understand when and how to use each of these event methods and the consequences of doing so.<\/p>\n<p>Other event functions not included in this diagram can be found in the original <a href=\"https:\/\/docs.unity3d.com\/Manual\/ExecutionOrder.html\">execution order page<\/a> in the Unity manual. You can easily locate their place in this diagram by consulting the manual.<\/p>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2067 size-large\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-1024x1024.png\" alt=\"\" width=\"620\" height=\"620\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-1024x1024.png 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-300x300.png 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-150x150.png 150w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-768x768.png 768w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-36x36.png 36w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes-115x115.png 115w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes.png 1200w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>A &#8220;Dark Mode&#8221; version is also available:<\/p>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2066 size-large\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-1024x1024.png\" alt=\"\" width=\"620\" height=\"620\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-1024x1024.png 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-300x300.png 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-150x150.png 150w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-768x768.png 768w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-36x36.png 36w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes-115x115.png 115w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes.png 1200w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>All versions of this guide:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light.png\">Light &#8211; PNG &#8211; High resolution<\/a><\/li>\n<li><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light-LowRes.png\">Light &#8211; PNG &#8211; Low resolution<\/a><\/li>\n<li><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Light.pdf\">Light &#8211; PDF<\/a><\/li>\n<li><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark.png\">Dark &#8211; PNG &#8211; High resolution<\/a><\/li>\n<li><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark-LowRes.png\">Dark &#8211; PNG &#8211; Low resolution<\/a><\/li>\n<li><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2023\/04\/Guide-to-the-Execution-Order-of-Unity-Event-Functions-V2-Dark.pdf\">Dark &#8211; PDF<\/a><\/li>\n<\/ul>\n<p>For feedback and discussion, please use this <a href=\"https:\/\/forum.unity.com\/threads\/a-comprehensive-guide-to-the-execution-order-of-unity-event-functions.1381647\/\">thread in the Unity forum<\/a>.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\" rel=\"license\"><img decoding=\"async\" style=\"border-width: 0;\" src=\"https:\/\/i.creativecommons.org\/l\/by-sa\/4.0\/88x31.png\" alt=\"Creative Commons License\" \/><\/a><br \/>\nThis work is licensed under a <a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\" rel=\"license\">Creative Commons Attribution-ShareAlike 4.0 International License<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide illustrates the actual order of execution of the main Unity event functions, as well as the considerations for each one. It also includes essential information to help you understand when and how to use each of these event methods and the consequences of doing so. Other event functions not included in this diagram [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2059,"parent":228,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-c.php","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-2044","page","type-page","status-publish","has-post-thumbnail","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/P1PjRF-wY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/2044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/comments?post=2044"}],"version-history":[{"count":10,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/2044\/revisions"}],"predecessor-version":[{"id":2073,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/2044\/revisions\/2073"}],"up":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/228"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media\/2059"}],"wp:attachment":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media?parent=2044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}