UnityEditor.Animations.AnimatorTransitionBase.RemoveCondition C# (CSharp) Method

RemoveCondition() public method

Utility function to remove a condition from the transition.

public RemoveCondition ( AnimatorCondition condition ) : void
condition AnimatorCondition The condition to remove.
return void
        public void RemoveCondition(AnimatorCondition condition)
        {
            this.undoHandler.DoUndo(this, "Condition removed");
            AnimatorCondition[] conditions = this.conditions;
            ArrayUtility.Remove<AnimatorCondition>(ref conditions, condition);
            this.conditions = conditions;
        }