Hey there,
in my AnimationController i have an Animation that should transition to another Animation as soon as one of two possible triggers is activated. How do i do that?
Right now both triggers have to be activated to make the transition work.
Hey there,
in my AnimationController i have an Animation that should transition to another Animation as soon as one of two possible triggers is activated. How do i do that?
Right now both triggers have to be activated to make the transition work.
If I understand correctly, what you currently have is a single transition with two conditions. This set up operates like a logical AND operator, i.e (trigger1 && trigger2) where both triggers must be true.
To get the behavior of a logical OR operator, i.e. (trigger1 || trigger2) where only one is required, you will need to create a second transition from State1 to State2. Add the second transition the same way you added the first one and you will notice the connection between the states now has multiple arrows, this lets you know there are two or more transitions. Each transition can have its own set of conditions on it.
Thanks, this is what i wanted to know.
I already tried to set up the double transition with the multiple arrows but it was still acting like before (Trigger1 && Trigger2).
I’m going to Post a Screenshot as soon as i get home today.
It looks like you still have two conditions on a single transition. When you select the line that has multiple transitions, you can switch which transition you are manipulating using the list in the top of the inspector on the right. Make sure the condition list at the bottom of the inspector only has one condition in the list. After that, you should get the desired effect.
Alright alright, it works
I didn’t know i had to select the transitions in the inspector after selecting the Line.
Thanks man
You’re very welcome! Glad it is all fixed up for you now.