Version: 2020.1
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); } }