The normalized time of the next state in a transition between same states
I want to get the normalized time of the next state in a transition, but got wrong result under the following conditions.
There is a state which I called it 'A'. The A state have a trigger condition in a transition from Any State, and the transition have blending duration. The problem happens when the current and the next state are the same A, like A -> A.
I use Animator.GetNextAnimatorStateInfo and AnimatorStateInfo.normalizedTime to get the normalized time in Component.
When a StateMachineBehaviour in A shows entering A from A, the normalized time is still the former, which is not my want. For example, the normalized time is 0.4732008. After the StateMachineBehaviour shows exiting the former A, the normalized time becomes the latter. For example, the normalized time is 0.05294117.
These methods work when the current and the next state are different, like A -> B. Is there any problem? Thanks.,
Your answer
Follow this Question
Related Questions
How to activate a trigger in state machine when object reaches position? 0 Answers
Animation transition problem 1 Answer
How to stop already started transition in the animator and run next animation immediatley 0 Answers
Set transitions not working with right click in Mac 0 Answers
[HELP PLEASE] How can i check if an animator transition from animation to animation has finished? 3 Answers