I’m looking at GameObject, and also Object which it inherits from. Neither one have Update or Start events/methods documented and Object doesn’t have anything else it inherits from. This seems pretty mysterious. How do I determine what event/properties objects expose?
1 Answer
1All components inherit from MonoBehaviour which inherits from Object
Note that GameObject is not a component, but rather a container for components, and therefore does not inherit from MonoBehaviour. While other components such as Transform, Renderer and any custom scripts inherit from MonoBehaviour
Hope this helps, Benproductions1
PS: here is the link: Unity - Scripting API: MonoBehaviour