Version: 2022.3
public static double GetTime (U playable);

参数

playable 此操作所用的 Playable

返回

double 当前时间(以秒为单位)。

描述

返回 Playable 的当前本地时间。

The PlayableGraph updates the current time between Update and LateUpdate (see Execution Order),
unless SetTime is called since the last evaluation. In this case, the PlayableGraph will not automatically advance the time.

Use this templated extension method on any type that inherits from IPlayable.