Do not overwrite VideoPlayer url, just play the pre-configured video

This commit is contained in:
yangbear
2026-07-10 05:04:20 +08:00
parent 0abf59a7d7
commit fec97295be
+1 -2
View File
@@ -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