- Home /
Monobehavior vs other classes?
In my game, i am using all classes as a monobehavior ? i don't know remaining classes. Every time i am wrote as a monobehavior. can any one tell me for other classes as well as monobehavior and what is the use of other classes?
Answer by Chronos-L · Apr 17, 2013 at 08:09 AM
i am using all classes as a monobehavior ?
am not sure whether it is a rhetorical question or not, I am just going to answer it anyway*
In here, it is stated that MonoBehaviour is the base class every script derives from. So all in-game script that will directly affect the gameobject should be a MonoBehaviour
. Not so direct script that is capable of affecting the game, for example: a script that perform central-processing, can be made to not extends the MonoBehaviour
.
can any one tell me for other classes as well as monobehavior
Other class the users commonly derive from are EditorWindow (for utility purpose, typically has no direct connection to the game that is being made) and Editor (improve the script-inspector-view of a certain script)