- Home /
How could I do a "OR" in the Animator?
I want to make that a float needs to be x or y to go to a state. Can I do that?
Comment
Have you tried creating two transitions? The first with the x
condition, the other with the y
one
I did. When I did so I could only acess one of them by clicking.
Best Answer
Answer by RufusHolton · Aug 23, 2020 at 07:00 PM
you can use an if statement within the code that activates the animation and by adding ||
which means or, so for example:
if(condition_a || condition_b)
{
//animation activation code here
}