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

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.

主站蜘蛛池模板: 察隅县| 亳州市| 礼泉县| 蒲江县| 灌云县| 镇康县| 泰兴市| 宜黄县| 精河县| 仙游县| 石首市| 天镇县| 林口县| 堆龙德庆县| 孟津县| 廉江市| 门源| 隆尧县| 青龙| 安泽县| 通化市| 淄博市| 昭苏县| 子长县| 渭源县| 石林| 邯郸市| 吉林省| 陕西省| 东安县| 资溪县| 濉溪县| 三河市| 潢川县| 扬州市| 林芝县| 东宁县| 利辛县| 子洲县| 南丰县| 大方县|