Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Unity 5.1 for Samsumg Gear VR Problem - Volume Bar not showing for the volume adjustment

Discussion in 'AR/VR (XR) Discussion' started by Javieret, Jul 3, 2015.

  1. Javieret

    Javieret

    Joined:
    Jul 3, 2015
    Posts:
    8
    Hi everybody,

    I had some projects for Virtual Reality using Unity. Before of Unity 5.1 I've been using "ovr_mobile_sdk_0.6.0" where is included Unity package integration.

    With the last version, I've migrated my apps, removing "ovr_mobile_sdk" and using "Unity.VR" native. So I've removed OVRCameraRig, and added normal cameras, and Unity doing the "magic" of VR.

    All is working well, but... when I tried to upload to Oculus Store, people from Oculus Support tell me that report:

    "
    There are some minor technical issues that need fixing before we can proceed:
    - There is no volume meter (it is supposed to appear while adjusting the volume)
    "

    I've seen that the problem isn't of my application, is Unity native for Gear VR.

    If I deploy the app with Unity 5.1 using native checkbox, volume bar won't appears.
    The same applciation, but using old "ovr_mobile_sdk_0.6.0" and volume bar will appears.


    So, can Unity solve that problem for the next versions. Hope this helps.

    Thank you!
     
  2. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    287
    @Javieret Could you submit a bug report and port the bug report number here? We were unaware of this, but I will let Oculus know and we will start looking into this. Thanks.
     
    Javieret likes this.
  3. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    287
    @Javieret Oculus has released a Utilities Package for Unity that includes a script for the volume meter. Please use this and then resubmit your game for the store.
     
    Javieret likes this.
  4. Javieret

    Javieret

    Joined:
    Jul 3, 2015
    Posts:
    8
    Thanks for your reply @Ed unity . I'm going to test and post the results
     
  5. Javieret

    Javieret

    Joined:
    Jul 3, 2015
    Posts:
    8
    Sorry, I've just test to add Utilities Package to my Unity 5.1 native VR project, and the same. When you press volume buttons you don't see anything in the screen
     
  6. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    314
    I think you have to attach the OVRVolumeControl script to a GameObject in your scene.
     
    Javieret likes this.
  7. Javieret

    Javieret

    Joined:
    Jul 3, 2015
    Posts:
    8
    I created a new GameObject and added:
    - OVRVolumeControl
    - OVRManager
    - Mesh Renderer

    I've done this GameObject child of Camera, and changed this line in "OVRManager.cs" in Update method:

    Code (CSharp):
    1. if (volumeController != null)
    2.         {
    3.             if (volumeControllerTransform == null)
    4.             {
    5.                 if (gameObject.GetComponent<OVRCameraRig>() != null)
    6.                 {
    7.                     volumeControllerTransform = gameObject.GetComponent<OVRCameraRig>().centerEyeAnchor;
    8.                 }
    9.                //Add this line, because we don't have OVRCameraRig
    10.                volumeControllerTransform = gameObject.GetComponentInParent<Camera>().transform;
    11.             }
    12.             volumeController.UpdatePosition(volumeControllerTransform);
    13.         }
    I added line:
    Code (CSharp):
    1.  
    2. volumeControllerTransform = gameObject.GetComponentInParent<Camera>().transform;
    3.  
    Because don't have OVRCameraRig, you're using normal Camera.


    It works for me. Hope this helps.
     
  8. redeyenight

    redeyenight

    Joined:
    Sep 4, 2014
    Posts:
    3
    How can I position the volume bar. its seems to show up really low down in one scene and high up in another. Moving the game object has no effect. thanks
     
  9. trevorchico

    trevorchico

    Joined:
    Feb 1, 2016
    Posts:
    7

    Been trying to figure this out for a while! code worked for me on 5.3.4f1
     
  10. Codest19

    Codest19

    Joined:
    Nov 24, 2012
    Posts:
    8
    You said you got this to work on 5.3.4f1, what versions of ovr mobile sdk and ovr unity utilities were you using?
     
unityunity