From 01f6331770a6368e6969ab0178badfc7159ca5ae Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Wed, 9 Apr 2025 09:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UIVideo.cs | 11 +++++++---- Assets/Scripts/UILongPicture/UIKnowledge.cs | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/UI/UIVideo.cs b/Assets/Scripts/UI/UIVideo.cs index 0c617ca8..c8ee9f71 100644 --- a/Assets/Scripts/UI/UIVideo.cs +++ b/Assets/Scripts/UI/UIVideo.cs @@ -135,10 +135,13 @@ namespace QFramework.Example VideoContent.rectTransform.sizeDelta = mData.size; } VideoContent.transform.localPosition = mData.offset; - - player.url = Global.videoPath + mData.url; - player.Play(); - SetImg(); + string path = Global.videoPath + mData.url; + if (string.IsNullOrEmpty(path) == false) + { + player.url = path; + player.Play(); + SetImg(); + } } private void VideoPlayer_loopPointReached(UnityEngine.Video.VideoPlayer source) diff --git a/Assets/Scripts/UILongPicture/UIKnowledge.cs b/Assets/Scripts/UILongPicture/UIKnowledge.cs index 80c87423..ddfd7ef5 100644 --- a/Assets/Scripts/UILongPicture/UIKnowledge.cs +++ b/Assets/Scripts/UILongPicture/UIKnowledge.cs @@ -78,7 +78,7 @@ namespace QFramework.Example } else { - label.color = isOn == true ? Color.black : Color.white; + label.color = isOn == true ? Color.blue : Color.black; } }); if (itemData.subs != null && itemData.subs.Count > 0)