Start MonoBehaviour Methods
Tutorial
·
Beginner
·
+10XP
·
5 mins
·
(3733)
Unity Technologies

How to use Awake and Start, two of Unity's initialization functions.
This tutorial is included in the Beginner Scripting project.
Previous: Scope and Access Modifiers
Next: Update and FixedUpdate
1. Awake and Start
using UnityEngine;
using System.Collections;
public class AwakeAndStart : MonoBehaviour
{
void Awake ()
{
Debug.Log("Awake called.");
}
void Start ()
{
Debug.Log("Start called.");
}
}