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

Layers and parameters

Layers, as the name implies, allow us to stack different state machine levels on top of each other. This panel allows us to organize the layers easily and have a visual representation. We will not be doing much in this panel for now as it primarily relates to animation, but it's good to be familiar with it. Refer to the following screenshot of the window to find your way around the layers:

Here is a summary of the items shown in the previous screenshot:

  • Add layer: The + button creates a new layer at the bottom of the list.
  • Layer list: These are the layers currently inside the animator controller. You can click to select a layer and drag and drop layers to rearrange them.
  • Layer settings: The gear icon brings up a menu to edit animation-specific settings for the layer.

Second, we have the Parameters panel, which is far more relevant to our use of the animator controller. Parameters are variables that determine when to transition between states, and we can access them via scripts to drive our states. There are four types of parameters—float, int, bool, and trigger. You should already be familiar with the first three as they are primitive types in C#, but trigger is specific to the animator controller, not to be confused with physics triggers, which do not apply here. Triggers are just a means to trigger a transition between states explicitly.

The following screenshot shows the elements in the Parameters panel:

Here is a summary of the items depicted in the previous screenshot:

  • Search: We can quickly search through our parameters here. Simply type in the name and the list will populate with the search results.
  • Add parameter: This button lets you add new parameters. When you click on it, you must select the parameter type.
  • Parameter list: This is the list of parameters you've created. You can assign and view their values here. You can also reorder the parameters to your liking by dragging and dropping them in the correct order. This is merely for organization and does not affect functionality at all.

Lastly, there is an eyeball icon, which you can click to hide the Layers and Parameters panels altogether. When the panels are closed, you can still create new layers by clicking on the Layers dropdown and selecting Create New Layer:

主站蜘蛛池模板: 双峰县| 阳春市| 东乡县| 定边县| 廊坊市| 五寨县| 彰化县| 仪陇县| 常德市| 长乐市| 台中县| 平舆县| 敖汉旗| 阳原县| 井研县| 满城县| 九龙县| 专栏| 镇平县| 辛集市| 丰都县| 曲阳县| 丰宁| 洪泽县| 资源县| 武安市| 南宫市| 抚宁县| 印江| 准格尔旗| 沭阳县| 民权县| 杭州市| 闵行区| 晋城| 二连浩特市| 泗洪县| 益阳市| 霞浦县| 阿拉善左旗| 时尚|