Trying to add buttons inside a sphere that plays 360 videos
I'm fairly new to Unity. Currently, I'm trying to work on a gear VR app that allows me to play a 360 view video. At the end of the video I want a button to appear and when you click that button, another movie loads and plays.
I am using the Easy Movie Textures plugin that is available on the asset store and have been able to successfully play a video but when I add a button, it never shows up. I'm assuming that the issue has something to do with the Mesh Renderer for the sphere.
I was thinking maybe having multiple scenes would be best.
Scene 1 - Play video and fade out at the end Scene 2 - Fades in and it's just a button. when you click the button ... Scene 3 - after button click, scene 3 loads which is just another sphere that plays another 360 video
Any advice would be really appreciated. I am currently building this with little clue as to what is the right way to do something like this.
If someone has any ideas and can point me in a good direction, I would greatly appreciate it.
Not tried that plugin so I don;t know how it works but you could probably use a world space canvas attached to the player/camera rig,
On the other hand I actually like the idea fade out to a different scene, you could have movie theater lobby with popcorn machines and a ticket booth that lists the available movies.
Hey @$$anonymous$$mmpies, would love to try to do a world space canvas. $$anonymous$$y issue is that I'm not 100% sure how I would go about this. Would you $$anonymous$$d posting a link to a tutorial or maybe laying the base steps on how to achieve this?
Heya, I need to do the same, except i'll be applying the Youtube plugin over top of this one. $$anonymous$$y aim is the same, click a button, load a YouTube video onto the sphere.
I have asked the dev to send a very basic example, will post up if and when i have success.
Hi @flocktome, let me know what he says. I'm stuck at this part. I can do the click but not sure how to go about doing the loading of the new video.
Answer by Mmmpies · Jun 15, 2016 at 07:23 PM
To make a world space canvas just add a canvas and select
Render Mode -> World Space
In the inspector.
Don't resize it scale it (or fonts will look awful), look in the RectTransform part of your canvas in the inspector, try setting the scale to something like .005 on x/y/z (OK Z makes no real difference).
move it so it's either near the camera or place it as a child of the camera and position so it can be seen and used.
Give me a shout if you get stuck or at least try the official tutorial (they're always really good).
This has lead me in a good direction. I found out the reason I couldn't see any buttons or sprites was because the orb mesh renderer has to be turned off if you want to see anything else other than the 360 movie. Now that I know that, things are moving along. Your info and link helped me a lot. I'm on to figuring out buttons with the gear vr :)
Answer by sennin31 · Sep 01, 2016 at 08:50 AM
They were a bug with the material, now you can use unlit / texture and see you GUI again :)
I had the same issue and this works for me
Your answer

Follow this Question
Related Questions
Video Player problems on iOS (Unity 2018) 0 Answers
How to make a pressable button in Unity VR (Vive) that puts you in a new scene? 0 Answers
360 video player -how to stream video from url ? 1 Answer
Best way to store video content for later playback in Unity? 0 Answers
URL from Video Player is not working 2 Answers