unity用自帶的Video player播放視頻

目的:讀取本地視頻,在unity項目裏播放 1、新建一個RawImage(命名爲PlayVideo) 2、項目裏新建一個RenderTexture(命名爲Video),size屬性設置爲1280x720(720p) 3、在PlayVideo上的Texture上掛載Video;再掛載一個VideoPlayer腳本, 4、VideoPlayer中的Render Mode選擇Render Texture
相關文章
相關標籤/搜索