Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Why is MonoBehaviour called MonoBehaviour?

Discussion in 'Editor & General Support' started by binho123, Dec 1, 2019.

  1. binho123

    binho123

    Joined:
    May 28, 2019
    Posts:
    18
    Is it because of Mono?
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,315
  3. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,008
    But mono as a project , or mono as a single. ?
    Or both.
     
  4. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It probably should've been called MonoScript or BaseMono or WishWeThoughtOfDOTSFirst
     
  5. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    Waiting for DOTSBehaviour...
     
    hippocoder likes this.
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes :)
     
  7. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,315
    Mono as in the Mono compiler. This specifier is significant because Unity used to support scripting in "Javascript" and Boo. Therefore a C# script is a Mono script*, that held a MonoBehaviour, as opposed to a Javascript script that presumably would hold an implicit JSBehaviour or something.

    Behaviour as in "this is a behaviour script for the gameobject it is placed on".

    Obviously the name has been somewhat outgrown by the engine.

    * To further nail the point home, .cs files are still imported as "MonoScript" objects.
     
  8. mysticcoder

    mysticcoder

    Joined:
    Oct 9, 2014
    Posts:
    7
    Not sure if this was ever part of the design or naming decisions but it could be pointed out that scripts added to GameObjects are generally intended to serve a single function in the Unity design specification if I'm not mistaken - thus - mono behaviour. Coincidence or intention?