Behaviour
Inherits from: Component
Behaviour serves as the foundational class for enabling or disabling functionality on GameObjects, acting as a base for various active components such as scripts (MonoBehaviour), physics components (Rigidbody), and renderers (MeshRenderer). It facilitates dynamic control over the active states of attached functionalities. For comprehensive information, the official Unity documentation on Behaviour is recommended.
Properties
Permits runtime toggling of a Behaviour's active state, affecting scripts, physics, renderers, etc.
Indicates whether the Behaviour is active, considering both its own state and the GameObject's activity.
Updated 6 months ago