Question by
tilli_b · May 25, 2017 at 05:14 PM ·
videovideotexturevideos
How can i play various videos on one gameobject and switch them by pressing a button?
Hey everyone, i have a gameobject in my scene with a videoplayer attached to it. I want to play more than one video on the same gameobject and switch between the videos by pressing a button. I really struggle with the script :( I hope someone already hab a similar problem and is able to help me. Thank you very much!
Comment
Answer by taguados · Jul 04, 2017 at 07:17 AM
Hi,
I'm pretty new with unity so I'm not sure this will help but I think you can use videoplayer.url (https://docs.unity3d.com/ScriptReference/Video.VideoPlayer-url.html) to change between videos.