📜  如何在 ui unity 中播放视频 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:01.951000             🧑  作者: Mango

代码示例1
//Step 1: Add Video Clip to assets
//Step 2: Create "Render Texture" in assets (Create-Render Texture)
//Step 3: create "Video Player" in hierarchy (Video-Video Player)
//Step 4: Create "Raw Image" as a child to your canvas (UI - Raw Image)
//Step 5: Drag your Render Texture to the "texture" of your Raw Image
//Step 6: Drag your Video Clip to the "video clip" of the video player
//Step 7: Drag your Render Texture to the "target texture" of the Video Player
//This should work. If this doesn't work check the video in the source.