Version: 2020.1
言語: 日本語
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.