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("escape")) { Application.Quit(); } //you must add using UnityEngine.SceneManagement; at the top //restart the current scene whatever scene is, you can also specify the name if (Input.GetKeyDown(KeyCode.R)) { SceneManager.LoadScene(SceneManager.GetActiveScene().name); } } }
Crucial project settings, icon, name, graphics quality, resolution and aspect ratio
Post processing effects for build in pipeline: make your game not look like s*it
GUI: how to not have a messed up interface