From 46c7bf90005b8f948e2478d0ae55a732db6b9768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=C3=AF=7E?= Date: Tue, 10 May 2022 19:59:29 +0200 Subject: [PATCH] Add CgeAacFlTransition.Automatically(): - This is equivalent to a transition that occurs after the animation is at least at 0 percent. - It is meant to be used with sub state machine nodes exiting. --- Framework/Editor/V0/AacFlStates.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Framework/Editor/V0/AacFlStates.cs b/Framework/Editor/V0/AacFlStates.cs index 294be80..e84be4d 100644 --- a/Framework/Editor/V0/AacFlStates.cs +++ b/Framework/Editor/V0/AacFlStates.cs @@ -816,6 +816,14 @@ namespace AnimatorAsCode.V0 return this; } + public AacFlTransition Automatically() + { + _transition.hasExitTime = true; + _transition.exitTime = 0; + + return this; + } + public AacFlTransition AfterAnimationIsAtLeastAtPercent(float exitTimeNormalized) { _transition.hasExitTime = true;