动画中的Unity事件丢失 [英] Unity events in animation missing

查看:302
本文介绍了动画中的Unity事件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在动画中使用事件(动画是我的.fbx文件的一部分,该文件从3d studio nad导出到我导入到Unity 5.3中),以更改角色的行为,例如

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 )

推荐答案

必须在动画"窗口(而不是动画器")中添加动画事件.打开它,然后选择一个具有要向其添加事件的AnimationClip的GameObject(可以是带有Animator或带有Animation组件的GameObject).

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.

这篇关于动画中的Unity事件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆