Keyframe.time
Declaration
public float time;Описание
Время ключевого кадра.
В графе 2D это можно рассматривать как значение x.
Дополнительные ресурсы: value.
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].time); } }