BehaviourExtensions.SetEnabled

Extension Method in BehaviourExtensions

Declaration

public static void SetEnabled(this Behaviour behavior, bool enabled)

Description

Sets the enabled state of a behavior.

Parameters

behaviorThe behavior to enable or disable.
enabledThe enabled state to set.

Overload

Declaration

public static void SetEnabled(this Behaviour[] behaviors, bool enabled)

Description

Sets the enabled state of an array of behaviors.

Parameters

behaviorsThe behaviors to enable or disable.
enabledThe enabled state to set.