Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Behaviour

Behaviours are Components that can be enabled or disabled.
Read time 6 minutesLast updated 3 days ago

Definition

public class Behaviour : Component

Remarks

Additional Resources: MonoBehaviour and Component.

Properties

Property

Description

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledChecks whether a component is enabled, attached to a GameObject that is active in the hierarchy, and the component's OnEnable has been called.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.