Version: 2023.1
言語: 日本語
public int AddKey (float time, float value);

パラメーター

time キーを追加する時間(カーブグラフにおける水平軸)
value キーの値(カーブグラフにおける垂直軸)

戻り値

int 追加されたキーのインデックス、キーを追加しなかった場合は -1 を返します。

説明

カーブに新しいキーを追加します。

Smooth tangents are automatically computed for the key. Returns the index of the added key. If no key could be added because there is already another keyframe at the same time -1 will be returned.

関連項目: keys 変数 .


public int AddKey (Keyframe key);

パラメーター

key キーにカーブを追加します。

戻り値

int 追加されたキーのインデックス、キーを追加しなかった場合は -1 を返します。

説明

カーブに新しいキーを追加します。

Returns the index of the added key. If no key could be added because there is already another keyframe at the same time -1 will be returned.

関連項目: keys 変数、Keyframe 構造体

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