AnimationClip.AddEvent 添加动画事件
function AddEvent (evt : AnimationEvent) : void
Description描述
Adds an animation event to the clip.
给剪辑添加动画事件。
Note that events added with AddEvent will only persist until play mode is exited of player is quit. If you want to add an event to a clip persistently, use AnimationUtility.SetAnimationEvents from the Unity editor.
注意动画事件被添加,只有坚持直到退出播放模式或玩家退出。如果你想给剪辑添加一个固定的事件,从unity编辑器使用AnimationUtility.SetAnimationEvents
另见: AnimationEvent, AnimationUtility类.
最后修改:2011年1月6日 Thursday 23:43