Play Movie in Unity

play-movie-in-unity6

最近剛好在研究movie texture功能,雖然最後沒採用,但還是可以分享一下

我是用Unity 5.0.1

準備好.mov檔的影片(按右鍵免費下這個 play-movie-in-unity1)

按照以下步驟

play-movie-in-unity3
建立一個Quad

接下來設置Movie Texture,跟一般texture用法相同,拖過去就好

play-movie-in-unity4
將Movie Texture drag & drop到Quad

用Script控制播放

[codebox 1]

play-movie-in-unity5
Drag & Drop Movie texture到script底下

 

最後效果

 

*在手機上目前好像只能夠播放全螢幕

 

Leave a Reply

Your email address will not be published. Required fields are marked *