- Home /
Question by
DavidDebnar · Feb 14, 2013 at 09:02 PM ·
classmonobehaviouronmouseoverbuiltinnon-monobehavior
Is it possible for a non-MonoBehaviour class to use built-in functions?
Hey, just as the title says, my question is if non-MonoBehaviour classes that have the ability to be used as var myVariable : MyClass = new MyClass("foo"); can use built-in functions such as OnMouseOver(). I'm assuming the answer is no, because they can't be added onto a GameObject and thus don't have access to colliders of GameObjects
Comment
Your answer
Follow this Question
Related Questions
MonoBehaviour methods in non-MonoBehaviour class 1 Answer
C# Conception - Hide inherited members and functions 1 Answer
Pushing GameObject into JS Array returns NullReferenceException 1 Answer
Do you tend to have scripts to mark prefabs 1 Answer
why non-Monobehaviour classes cannot be attached as a component in Unity3D? 1 Answer