官术网_书友最值得收藏!

Creating our very first state

Okay, so the header is not entirely true since Unity creates a few default states for us in our animator controllerNew State, Any State, Entry, and Exit—but let's just agree that those don't count for now, okay? Let's take a look at some of the things we can do in our newly-created animation controller:

  • You can select states in this window by clicking on them, and you can move them by dragging and dropping them anywhere in the canvas.
  • Select the state named New State and delete it by either right-clicking and then clicking on Delete or simply hitting the Delete key on your keyboard.
  • If you select the Any State state, you'll notice that you do not have the option to delete it. The same is true for the Entry state. These are required states in an animator controller and have unique uses, which we'll cover up ahead:

To create our (true) first state, right-click anywhere on the canvas and then select Create State, which opens up a few options, from which we'll select Empty. The other two options, From Selected Clip and From New Blend Tree, are not immediately applicable to our project, so we'll skip these. Now we've officially created our first state.

主站蜘蛛池模板: 凤山县| 泉州市| 湄潭县| 尉犁县| 德格县| 利川市| 凤城市| SHOW| 六枝特区| 荣成市| 运城市| 兖州市| 大兴区| 北碚区| 通辽市| 抚宁县| 安阳县| 怀安县| 正安县| 海安县| 高密市| 延长县| 汤原县| 济宁市| 天门市| 定安县| 乌什县| 商都县| 宁晋县| 那曲县| 西吉县| 汉沽区| 麟游县| 靖州| 南汇区| 舒兰市| 江源县| 康马县| 涪陵区| 安吉县| 宁都县|