From 0da2c9ea70fd4f74157e3a9b2a522e7c210b5372 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Thu, 27 Feb 2025 15:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A9=E5=B1=95timeline=20=E5=80=8D=E9=80=9F?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Actions/TimeLineAction.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/Actions/TimeLineAction.cs b/Assets/Scripts/Actions/TimeLineAction.cs index 2b0c293d..1ba467fd 100644 --- a/Assets/Scripts/Actions/TimeLineAction.cs +++ b/Assets/Scripts/Actions/TimeLineAction.cs @@ -109,6 +109,10 @@ public class TimeLineAction : IAction { curSpeed = 1; } + if (!play.playableGraph.IsValid()) + { + play.RebuildGraph(); + } play.playableGraph.GetRootPlayable(0).SetSpeed(curSpeed); play.Play();