Unity events in animation missing

纵饮孤独 提交于 2019-12-08 06:45:23

问题


I want to use Events in my animation ( my animation is part of my .fbx file which is exported from 3d studio nad I imported to Unity 5.3 ) to change behavior of my character like in http://docs.unity3d.com/Manual/animeditor-AnimationEvents.html but I don't have Events option like in tutorial and when I click double on any moment in timeline no new event is created.

How to add Events option to animation ( I know how to add callbacks once I have option for events from previous tutorial )


回答1:


Animation events have to be added in the "Animation" window (not "Animator"). Open it, then select a GameObject which has the AnimationClip you want to add events to (can either be GameObject with an Animator or with an Animation component).

You should now be able to select the clip in the Animation window and add events to it by right-clicking in the dark grey section right below the timeline.




回答2:


Go to the "Rig" tab of the object and select "Generic". It's probably set to Legacy, which won't give you the events option.



来源:https://stackoverflow.com/questions/35677314/unity-events-in-animation-missing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!