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

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.

主站蜘蛛池模板: 舟山市| 连山| 湖南省| 郸城县| 贵南县| 河东区| 多伦县| 伊川县| 上蔡县| 英山县| 汉寿县| 高唐县| 富阳市| 开封县| 铁力市| 佳木斯市| 开鲁县| 河曲县| 越西县| 桂阳县| 靖宇县| 津南区| 平塘县| 河源市| 涟水县| 兴隆县| 大埔区| 祁东县| 应用必备| 图木舒克市| 榆社县| 柳江县| 阜康市| 克拉玛依市| 邢台市| 衡阳县| 南和县| 龙泉市| 樟树市| 衡东县| 大邑县|