title: How prevent large amount of transitions in unity state machine?
body: <p>I have a unity state machine with four states: idle left, idle up, idle down and idle right.</p>
  
  <p><a href="https://i.stack.imgur.com/qYFA8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qYFA8.png" alt="transitions"></a></p>
  
  <p>To transition between these states I had to create 12 transitions. (the white arrows). This already seems unwieldy, but now I need to add 4 more states: running up, running down, running left and running right.</p>
  
  <p>Does that mean I end up with 8 states and 24 transitions running between all of them? That seems very unwieldy to me. What if you need to change something later?</p>
  
  <p>I know I can transition by code, but that doesn't seem to be the recommended way of working.</p>
  
  <pre><code>animaor.Play("runningright");
  </code></pre>
  
  <p>What would be the recommended way to work with lots of states?</p>