Compare commits

...

2 Commits

Author SHA1 Message Date
shenjianxing
bdd2997382 合并 2025-04-09 09:00:59 +08:00
shenjianxing
01f6331770 修复bug 2025-04-09 09:00:01 +08:00
2 changed files with 8 additions and 8 deletions

View File

@ -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)

View File

@ -78,7 +78,7 @@ namespace QFramework.Example
}
else
{
label.color = isOn == true ? Color.black : Color.blue;
label.color = isOn == true ? Color.blue : Color.black;
}
});
if (itemData.subs != null && itemData.subs.Count > 0)
@ -91,9 +91,6 @@ namespace QFramework.Example
else
{
toggle.group = LeftContent.GetComponent<ToggleGroup>();
}
}
/// <summary>