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
behavior | The behavior to enable or disable. |
enabled | The 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
behaviors | The behaviors to enable or disable. |
enabled | The enabled state to set. |