Version: 2017.4
public int MoveKey (int index, Keyframe key);

パラメーター

index移動するキーのインデックス
key(新規時間として)挿入するキー

戻り値

int キーフレームを移動した後のキーフレームのインデックスを返します。

説明

index でキーフレームを削除し、キーを挿入し直します。

If a keyframe already exists at key.time, then 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.