扩展timeline 倍速参数

This commit is contained in:
shenjianxing 2025-02-27 15:51:55 +08:00
parent 09435dd391
commit 0da2c9ea70

View File

@ -109,6 +109,10 @@ public class TimeLineAction : IAction
{ {
curSpeed = 1; curSpeed = 1;
} }
if (!play.playableGraph.IsValid())
{
play.RebuildGraph();
}
play.playableGraph.GetRootPlayable(0).SetSpeed(curSpeed); play.playableGraph.GetRootPlayable(0).SetSpeed(curSpeed);
play.Play(); play.Play();