AnimationCurve.MoveKey 改变键


function MoveKey (index : int, key : Keyframe) : int

Description描述

Removes the keyframe at index and inserts   key.

移除索引处的关键帧并插入键.

If a keyframe already exists at key.time the time   of the old keyframe's position /key[index].time/ will be used instead. This is   the desired behaviour for dragging keyframes in a curve editor. Returns the   index of the keyframe after moving it.

如果一个关键帧在key.time.老关键帧的position/key[index].time将被替换.移动它后返回关键帧的索引.


,