enabled property

bool enabled
getter/setter pair

Whether this component's update hook runs each frame.

When false, update is skipped while leaving the component attached and mounted. Defaults to true.

Implementation

bool enabled = true;