Closed aleverdes closed 2 years ago
Hi @aleverdes, the classes from scripts could only directly extends MonoBehaviour by default for now.
It's possible to extend custom user classes, but a binding class (like JSBehaviour
) is required as an adapter to achieve this for each. And it seems hard to implement it as a generic solution.
Thank you! Just got to the bottom of JSBehaviour and was trying to figure out how it works. Perhaps I will try to implement a clone class for myself for my needs, or a universal solution.
@ialex32x Hi!
I am trying to put together my test logic. Faced a problem. If I create a class based on MonoBehaviour, then the Awake, OnEnable, etc. are called. If I make the class a successor of my MonoBehaviour (empty) successor, then the methods stop being called.
What am I doing wrong?
You need to uncomment line 5, and comment out line 6.