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

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.

主站蜘蛛池模板: 彰化市| 宁蒗| 孝昌县| 句容市| 大新县| 陇南市| 晋中市| 商都县| 陈巴尔虎旗| 丹阳市| 青岛市| 铁岭市| 孟州市| 平顶山市| 东辽县| 尚志市| 建平县| 丘北县| 武功县| 丹寨县| 桓台县| 河津市| 县级市| 枝江市| 云南省| 益阳市| 锡林浩特市| 泽普县| 博爱县| 紫阳县| 莱阳市| 灵寿县| 聊城市| 吉木萨尔县| 邵阳县| 股票| 安溪县| 广安市| 汾西县| 搜索| 丽水市|