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

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.

主站蜘蛛池模板: 黔西| 日土县| 积石山| 金溪县| 永平县| 永登县| 工布江达县| 西乌珠穆沁旗| 普安县| 六盘水市| 彰化县| 阳城县| 肇东市| 南涧| 利川市| 平原县| 区。| 安远县| 临洮县| 汉源县| 信丰县| 甘德县| 镇沅| 宜昌市| 缙云县| 松桃| 苍梧县| 方山县| 辉县市| 曲松县| 祁门县| 平定县| 屯门区| 沙坪坝区| 鄱阳县| 嘉黎县| 神池县| 上虞市| 河南省| 潜江市| 邵阳市|