Do not overwrite VideoPlayer url, just play the pre-configured video
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user