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

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.

主站蜘蛛池模板: 抚顺市| 崇文区| 东阳市| 张家口市| 象山县| 水城县| 色达县| 麻城市| 大关县| 汉源县| 阜阳市| 松溪县| 湘潭市| 类乌齐县| 石城县| 阳谷县| 江北区| 千阳县| 满洲里市| 郯城县| 吉隆县| 罗田县| 当涂县| 渝北区| 盈江县| 永安市| 昌平区| 南乐县| 梅州市| 天等县| 宜春市| 庄河市| 清新县| 共和县| 伊川县| 吉木萨尔县| 盐源县| 翁牛特旗| 疏勒县| 泾川县| 晋州市|