Keyframe.time 时间

var time : float

Description描述

The time of the keyframe.

关键帧时间。

In a 2D graph you could think of this as the x-value.

在一个二维图形,你可以认为这是x值。

参见:value.

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].time);
	}
}
var curve : AnimationCurve = AnimationCurve.Linear (0, 0, 5, 5);
// Extract the time from the first keyframe of a curve
//从一个曲线的第一个关键帧获得时间
Debug.Log(curve[0].time);
Page last updated: 2011-2-24