【登录视频】修复登录视频黑屏
parent
1e4b55d9fd
commit
e46fa3636d
|
@ -106,7 +106,7 @@ function PackageManager.SetVideo(obj, bg)
|
|||
Log("加载Stream视频:"..tostring(this.StreamConfig.LoginPanelVideoBG))
|
||||
if UIManager.IsOpen(UIName.LoginPanel) then
|
||||
local video = obj:GetComponent("VideoPlayer")
|
||||
video.url = "file://" .. UnityEngine.Application.streamingAssetsPath .."/Res/"..tostring(this.StreamConfig.LoginPanelVideoBG)..".mp4"
|
||||
video.url = UnityEngine.Application.streamingAssetsPath .."/Res/"..tostring(this.StreamConfig.LoginPanelVideoBG)..".mp4"
|
||||
video:Play()
|
||||
bg:DOFade(0, 2)
|
||||
obj:SetActive(true)
|
||||
|
|
Loading…
Reference in New Issue