Behaviour
Behaviours are Components that can be enabled or disabled.
Read time 6 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Component
public class Behaviour : Component
Remarks
Additional Resources: MonoBehaviour and Component.
Properties
Property | Description |
|---|---|
| enabled | True if this Behaviour is enabled, otherwise false. |
| isActiveAndEnabled | Checks whether a component is enabled, attached to a GameObject that is active in the hierarchy, and the component's OnEnable has been called. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |