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

参数

index 要移动的关键点的索引。
key 要插入的关键点(具有其新时间)。

返回

int 关键帧在移动后的索引。

描述

移除 index 处的关键帧,然后插入关键点。

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.

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