Unity 6.3
0 онлайн 62 гостей 3 в системе
Вход

Keyframe.value

Declaration

public float value;

Описание

Значение кривой на ключевом кадре.

В графе 2D это можно рассматривать как значение y.

Дополнительные ресурсы: time.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { AnimationCurve curve = AnimationCurve.Linear(0, 0, 5, 5); // Extract the time from the first keyframe of a curve Debug.Log(curve[0].value); } }