- Home /
Question by
John 13 · Sep 22, 2010 at 10:57 PM ·
monobehaviour
MonoBehaviour classes
What's the difference between a class devired from MonoBehaviour and a normal class which doesn't inherit from MonoBehaviour?
Comment
Best Answer
Answer by Tzan · Sep 22, 2010 at 11:59 PM
Well the obvious answer is that you get access to all the functions the class inherits from MonoBehaviour.
http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.html
A monoBehaviour class is automatically instantiated by Unity. A normal class needs to be manually instantiated.
I have about 30 classes so far and maybe only 6 are MonoBehaviours. So if you dont need to inherit from MB, dont.
Your answer

Follow this Question
Related Questions
Testing MonoBehaviours in a Package 0 Answers
onFilterAudioRead Problems 0 Answers
onGui not getting called every frame? 2 Answers
Referenced script missing 2 Answers