Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by $$anonymous$$ · Aug 24, 2018 at 04:25 PM · vroculusmonostereoscopicstereo

Stereo 360 video Pause/Play Not Working - Works with Mono Videos?

Hi,

I've got a project which contains several scenes. Each scene contains either a mono 360 video or a stereo 360 video.

When I'm creating the mono scenes I am able to pause and play using the space bar. I export it out, play the experience on the Oculus Rift and the video scenes all play and I can pause and play using the spacebar.

When I'm creating the stereo scenes I can't pause and play. However, the editor is recognizing that I am pausing and playing because inside of the inspector window underneath my script there is the word Pause and a checkbox. When I hit spacebar the checkbox is checked, when I hit it a second time the box is unchecked.

The only difference between my mono and stereo scenes is how the videos are displayed. For mono I am using a sphere which has the video player inside of it. For stereo I drag the video onto the hierarchy and apply the necessary textures in order to use the Skybox feature. The video does not pause.

I'm using a script called ChangeLevel inside of a game object called _Manager. This ChangeLevel script contains code that allows me to either skip to the next video, go back to the previous video, or pause/play. I have mapped all of these functions to both the keyboard and the Oculus Remote.

What is odd is that I can skip scenes in mono and stereo using both the controller and the Oculus Remote. The only thing I can't do is pause and play if the video in the scene is stereo or not inside of a sphere.

  • should also add that I am unable to pause using the Oculus remote within any instance. I can only pause if I'm inside of the mono video experience using spacebar on the keyboard.

Below is the scripts code:

 using UnityEngine;
 using System.Collections;
 using UnityEngine.SceneManagement;
 
 public class ChangeLevel : MonoBehaviour
 {
     public bool paused;
 
     void Start()
     {
         paused = false;
     }
 
     void Update()
     {
         if (Input.GetKeyDown(KeyCode.RightArrow))
         {
             SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
         }
         if (Input.GetKeyDown(KeyCode.LeftArrow))
         {
             SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);
         }
         if (Input.GetKeyDown(KeyCode.Escape))
         {
             Application.Quit();
         }
         if (Input.GetKeyDown(KeyCode.Space))
         {
             paused = !paused;
         }
         if (paused)
         {
             Time.timeScale = 0;
         }
         else if (!paused)
         {
             Time.timeScale = 1;
         }
 
         OVRInput.Update(); // need to be called for checks below to work
 
         if (OVRInput.GetDown(OVRInput.Button.DpadLeft))
         {
             SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);
             Debug.Log("back", gameObject);
 
         }
         if (OVRInput.GetDown(OVRInput.Button.DpadRight))
         {
             SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
             Debug.Log("next", gameObject);
 
         }
         if (OVRInput.GetDown(OVRInput.Button.Two))
         {
             Application.Quit();
             Debug.Log("Hello", gameObject);
 
         }
         if (OVRInput.Get(OVRInput.Button.One))
         {
             print("round button pressed");
         }
         if (OVRInput.GetDown(OVRInput.Button.One))
         {
             paused = !paused;
         }
         if (paused)
         {
             Time.timeScale = 0;
         }
         else if (!paused)
         {
             Time.timeScale = 1;
         }
     }
 }

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

117 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Right eye projection matrix is incorrect VR stereo portal 1 Answer

How Can I Combine Stereo Screen? 0 Answers

Unity on Gear VR with Galaxy S6 2 Answers

Toggle Gear VR mode on or off during gameplay? 2 Answers

Unity 5.4.1 + Oculus runtime 1.8 application not launching on Windows 7 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges