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); } }