From fec97295befc1f39845c685bcf5abd491b891626 Mon Sep 17 00:00:00 2001 From: yangbear Date: Fri, 10 Jul 2026 05:04:20 +0800 Subject: [PATCH] Do not overwrite VideoPlayer url, just play the pre-configured video --- Assets/Scripts/UI/UIManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/UI/UIManager.cs b/Assets/Scripts/UI/UIManager.cs index e4656e3..5894a10 100644 --- a/Assets/Scripts/UI/UIManager.cs +++ b/Assets/Scripts/UI/UIManager.cs @@ -246,8 +246,7 @@ public class UIManager : MonoBehaviour if (vp != null) { vp.isLooping = true; - string path = System.IO.Path.Combine(Application.streamingAssetsPath, "Videos", fileName); - vp.url = path; + // 不再通过代码强制覆盖路径,直接播放组件上预先配置好的视频 vp.Play(); } else