- Unity 2017 Game AI Programming(Third Edition)
- Ray Barrera Aung Sithu Kyaw Thet Naing Swe
- 247字
- 2021-07-02 19:14:15
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, but the connector from the entry state to the default state is unique in that it does not provide us with any options, since this transition happens automatically.
You can manually assign transitions between states by right-clicking on a state node and then selecting Make Transition. This will create a transition arrow from the state you selected to your mouse cursor. To select the destination of the transition, simply click on the destination node and that's it. Note that you cannot redirect the transitions though. We can only hope that the kind folks behind Unity add that functionality at a later point, but for now, you must remove a transition by selecting it and deleting it, and then assigning an all-new transition manually.
- Instant Node Package Manager
- 數據庫系統原理及MySQL應用教程(第2版)
- Software Testing using Visual Studio 2012
- Mastering Google App Engine
- iOS編程基礎:Swift、Xcode和Cocoa入門指南
- Haskell Data Analysis Cookbook
- Visual Basic程序設計上機實驗教程
- Python深度學習:模型、方法與實現
- Learning YARN
- C++語言程序設計
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Hands-On Robotics Programming with C++
- HTML5程序設計基礎教程
- R語言:邁向大數據之路
- Python網絡運維自動化