- Home /
How can i create a toggle on/off remote for video player in UNity 3d?
Hello,
i am developing an office space demo, to integrate VR into my workplace. I am having a hard time getting the video player inside my scene to toggle on/off while inside the scene. I would like to have a grabable object that i can use to toggle the video player, or even a button on the screen inside the scene. Any help would be greatly appreciated!
Answer by VoidPhoenix96 · Aug 14, 2021 at 05:16 AM
Can you provide any screenshots? That would help alot.
Anyway, I've done some research, and by looking at the Docs(https://docs.unity3d.com/ScriptReference/Video.VideoPlayer.html)
You could probably make a button that, when pressed, sets the video player's playback speed to 0, effectively pausing it.
There might be a better way but this is the easiest solution I could find. Hope this helps.
Your answer
Follow this Question
Related Questions
How do I play a full screen video? 4 Answers
Animated GIF and Audio Instead of Video? 3 Answers
Any possibility to play a video in unity free? 7 Answers
alpha keying after rendering for tv interaction 3 Answers
video and sound at the same time 0 Answers