Keyframe.value 值
var value : float
Description描述
The value of the curve at keyframe.
该动画曲线所在关键帧的值。
In a 2D graph you could think of this as the y-value.
在一个二维图形,你可以认为这是y值。
参见:time.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public AnimationCurve curve = AnimationCurve.Linear(0, 0, 5, 5);
public void Awake() {
Debug.Log(curve[0].value);
}
}
var curve : AnimationCurve = AnimationCurve.Linear (0, 0, 5, 5);
// Extract the value from the first keyframe of a curve
//从一个曲线的第一个关键帧获得值
Debug.Log(curve[0].value);
最后修改:2011年2月24日 Thursday 15:44