So I was watching a tutorial and the guys keeps banging on about classes being monobehaviour or not and I started wondering why he was making note of one that wasn’t monobehaviour. So I’ve looked it up on Unity and you can see the whole post here, but the main jist is this.
MonoBehaviour is the base class from which every Unity script derives.
When you use C#, you must explicitly derive from MonoBehaviour. When you use UnityScript (a type of JavaScript), you do not have to explicitly derive from MonoBehaviour.
Note: There is a checkbox for disabling MonoBehaviour on the Unity Editor; it disables Start()
, Awake()
, Update()
, FixedUpdate()
, and OnGUI()
from executing when unticked. If none of these functions are present in the script, the Editor does not display the checkbox.