Version: 2019.3
Transitions
Scripting

State Units

Note
To use Bolt, which is Unity’s visual scripting solution, you must purchase it on the Unity Asset Store.

State Units are very similar to super units, but for state graphs instead of flow graphs. They allow you to nest a whole state graph into a single unit in a parent flow graph.

To create a blank state unit, choose Nesting > State Unit in the fuzzy finder. As usual, you can double-click the node or use the Edit Graph button from its inspectorA Unity window that displays information about the currently selected GameObject, Asset or Project Settings, alowing you to inspect and edit the values. More info
See in Glossary
to open the nested graph. To create a state unit from a macro, you can either drag & drop the macro asset into your graph, or choose it from the Macros category in the fuzzy finder.

A state unit has two control input ports to indicate when to start and stop it, and two matching control output ports to specify what to do after.

When a state unit is started, all the start states in its nested state graph will be entered.

When it is stopped, every state and transition in its nested graph will be marked as inactive.

Transitions
Scripting
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961