Transitioning between states

You'll notice that upon creating our state, an arrow is created connecting the Entry state to it, and that its node is orange. Unity will automatically set default states to look orange to differentiate them from other states. When you only have one state, it is automatically selected as the default state, and as such, it is automatically connected to the entry state. You can manually select which state is the default state by right-clicking on it and then clicking on Set as Layer Default State. It will then become orange, and the entry state will automatically connect itself to it. The connecting arrow is a transition connector. Transition connectors allow us some control over how and when the transition occurs, ...

Get Unity 2017 Game AI Programming - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.