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

Bringing behaviors into the picture

State machine behaviors are a unique, new concept in Unity 5. While states existed, conceptually, in the original implementation of Mecanim, transitions were handled behind the scenes and you did not have much control over what happened upon entering, transitioning, or exiting a state. Unity 5 addressed this issue by introducing behaviors; they provide the built-in functionality to handle typical FSM logic.

Behaviors are sly and tricky. Though their name might lead you to believe they are related to MonoBehaviour, do not fall for it; if anything, these two are distant cousins at best. In fact, behaviors derive from ScriptableObject, not MonoBehaviour, so they exist only as assets, which cannot be placed in a scene or added as components to a GameObject.

主站蜘蛛池模板: 威海市| 凤台县| 正定县| 乌鲁木齐市| 南陵县| 呼和浩特市| 武定县| 林州市| 岢岚县| 高要市| 广灵县| 临湘市| 育儿| 连城县| 桑日县| 叶城县| 青阳县| 马山县| 静宁县| 菏泽市| 温宿县| 沈丘县| 谢通门县| 定南县| 南丹县| 中山市| 黄梅县| 收藏| 广东省| 岳普湖县| 蓝田县| 苏尼特左旗| 封开县| 上犹县| 成都市| 广水市| 阿鲁科尔沁旗| 河西区| 兴业县| 和平区| 新干县|