Version: 2018.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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961