• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Solved I wonder what isOVR and isOpenVR are.

Feel

Well-known member
Featured Contributor
Joined
Aug 18, 2022
Messages
583
Reactions
2,771
There are isOVR and isOpenVR in SuperController.singleton, I wonder what they mean.

At first, I thought that isOVR informs me of the VR environment.
However, some users do not seem to have this value working properly.
And there is also a value called isOpenVR, but I wonder what it is.
In my VR environment, the value comes out as false.

Also, are isOVR and isOpenVR supported only in the latest version of VaM?
 
i use this to detect if it's vr, dunno if it's correct but seems to have worked so far
XRSettings.isDeviceActive && !string.IsNullOrEmpty(XRSettings.loadedDeviceName)

OVR is oculus's library and openvr is steam I think. If you're using isOVR it probably detects just oculus headsets

I am using Oculus.
But I get the opposite information.

VR environment test (SteamVR)
isOVR = true
isOpenVR = false

When I searched, Unity said that it was possible to check the following, so I am trying it. do you know anything
"UnityEngine.XR.XRDevice.isPresent"
 
Upvote 0
you can also look at how vam is doing it:

C#:
protected void DetermineVRRig()
{
    Application.targetFrameRate = 300;
    if (VRDisabled)
    {
        SetMonitorRig();
        return;
    }
    string loadedDeviceName = XRSettings.loadedDeviceName;
    Debug.Log("XR device active is " + XRSettings.isDeviceActive);
    Debug.Log("XR device present is " + XRDevice.isPresent);
    Debug.Log("Loaded XR device is " + loadedDeviceName);
    Debug.Log("XR device model is " + XRDevice.model);
    Debug.Log("XR device refresh rate is " + XRDevice.refreshRate);
    if (!XRSettings.isDeviceActive || loadedDeviceName == null || loadedDeviceName == string.Empty)
    {
        SetMonitorRig();
    }
    else if (loadedDeviceName == "Oculus")
    {
        SetOculusRig();
    }
    else
    {
        SetOpenVRRig();
    }
}

thank you so much!!!
 
Upvote 0
Back
Top Bottom