{"id":1721,"date":"2021-11-18T16:01:02","date_gmt":"2021-11-18T16:01:02","guid":{"rendered":"http:\/\/mycours.es\/gamedesign2021\/?page_id=1721"},"modified":"2021-12-03T20:42:05","modified_gmt":"2021-12-03T20:42:05","slug":"finishing-touches-scene-change-post-effects-build-settings-gui-settings","status":"publish","type":"page","link":"http:\/\/mycours.es\/gamedesign2021\/finishing-touches-scene-change-post-effects-build-settings-gui-settings\/","title":{"rendered":"Finishing Touches: scene change, post effects, build settings, GUI settings"},"content":{"rendered":"<p><iframe loading=\"lazy\" title=\"Project build and scene changes\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/v61UO-Bfidc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>How to build a project, quit, change and restart a scene.<\/p>\n<p>Code example, quit and restart:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">using UnityEngine;\r\nusing System.Collections;\r\nusing UnityEngine.SceneManagement;\r\n\r\n\/\/ Quits the player when the user hits escape\r\n\r\npublic class Quit : MonoBehaviour\r\n{\r\n    void Update()\r\n    {\r\n        if (Input.GetKeyDown(\"escape\"))\r\n        {\r\n            Application.Quit();\r\n        }\r\n\r\n        \/\/you must add using UnityEngine.SceneManagement; at the top\r\n        \/\/restart the current scene whatever scene is, you can also specify the name\r\n        if (Input.GetKeyDown(KeyCode.R))\r\n        {\r\n            SceneManager.LoadScene(SceneManager.GetActiveScene().name);\r\n        }\r\n\r\n\r\n    }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" title=\"Project settings (best of)\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/qwYE7tCZhlU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Crucial project settings, icon, name, graphics quality, resolution and aspect ratio<\/p>\n<p><iframe loading=\"lazy\" title=\"Post processing effects (built in timeline)\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/vy6U5bTUw4U?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Post processing effects for build in pipeline: make your game not look like s*it<\/p>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" title=\"UI\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/LTkEzmABTrE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>GUI: how to not have a messed up interface<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to build a project, quit, change and restart a scene. Code example, quit and restart: using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; \/\/ Quits the player when the user hits escape public class Quit : MonoBehaviour { void Update() { if (Input.GetKeyDown(&#8220;escape&#8221;)) { Application.Quit(); } \/\/you must add using UnityEngine.SceneManagement; at the top \/\/restart the &hellip; <a href=\"http:\/\/mycours.es\/gamedesign2021\/finishing-touches-scene-change-post-effects-build-settings-gui-settings\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Finishing Touches: scene change, post effects, build settings, GUI settings&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1721","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/pages\/1721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/comments?post=1721"}],"version-history":[{"count":1,"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/pages\/1721\/revisions"}],"predecessor-version":[{"id":1722,"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/pages\/1721\/revisions\/1722"}],"wp:attachment":[{"href":"http:\/\/mycours.es\/gamedesign2021\/wp-json\/wp\/v2\/media?parent=1721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}