Let’s say I have an Animator with an Idle state, a walking state, and a sleeping state. There is no transition from walking to sleeping or vice versa, so the animator must return to idle to switch between these two states (This isn’t really the case, but I’m just explaining the concept). How could I determine programatically if there exists a transition between the current state and an arbitrary state?
As I see it, an AnimatiorState has a transitions property.