Unity 6.3
0 онлайн 72 гостей 3 в системе
Вход

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