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

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!

@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.

1 Like

@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.

1 Like

Thanks for your reply @Ed_unity . I’m going to test and post the results

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

I think you have to attach the OVRVolumeControl script to a GameObject in your scene.

1 Like

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:

if (volumeController != null)
        {
            if (volumeControllerTransform == null)
            {
                if (gameObject.GetComponent<OVRCameraRig>() != null)
                {
                    volumeControllerTransform = gameObject.GetComponent<OVRCameraRig>().centerEyeAnchor;
                }
               //Add this line, because we don't have OVRCameraRig
               volumeControllerTransform = gameObject.GetComponentInParent<Camera>().transform;
            }
            volumeController.UpdatePosition(volumeControllerTransform);
        }

I added line:

volumeControllerTransform = gameObject.GetComponentInParent<Camera>().transform;

Because don’t have OVRCameraRig, you’re using normal Camera.

It works for me. Hope this helps.

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

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

You said you got this to work on 5.3.4f1, what versions of ovr mobile sdk and ovr unity utilities were you using?