Is there a way to determine if a Trigger is set or is a condition of the current state?
animator.GetBool might tell you if it’s set since a Trigger is just a fancy Bool.
But you can’t get any info about the transition conditions in an Animator Controller at runtime.
Yeah, GetBool “works” with triggers but as you probably have guessed doesn’t help much. I guess that’s why you created your set of assets My code already works with bool parameters but I’m trying to get it to work with Triggers too.
A minor reason yeah, but even if you could access transition details at runtime the fact that you are forced to define important logic outside of your code is a massive design flaw.
Even before I made Animancer I never used Triggers. I set up all my states on their own with the only transitions being exit time transitions back to Idle for non-looping actions, then I used animator.Play or CrossFade to play them. That lets you avoid wasting time setting up and debugging parameters and transitions. It’s nowhere near as effective as Animancer, but at least it puts some of the logic back into your scripts where it belongs.
It is a good advice, thank you