I’m a little confused by something. I was writing some scripts for my game as MonoBehavior when I decided to change the inheritance from MonoBehavior to Component but that didn’t work
So I try to look some informations on the class Component but I didn’t find anything to answer why it didn’t work since Component is the main class for evey component added to a gameobject.
Components are just handlers to the GameObject - they’re a totally different thing to Monobehaviours. It’s easy to assume that the MonoBehaviours inherit from Components, but that’s not the case.
Most of these classes are simply wrappers for objects on the C++ side. Without access to the C++ side of the engine there is no use case to inherit directly from Component.