Check for health and safety warning
Hi guys,
Does anyone know how to get whether the health and safety warning is displayed in a unity project? I think I am just missing something really simple.
Reading the API, it looks like I call it like this:
My main problem is I don't understand how to create an object reference to Ovr.hmd. I have an OVRCamera in my project, is there some way I can get the IntPtr hmdPtr of the head mounted display in use? Or, is it more of a standard to call the static method like this:
If the above code is what I need to use, any advice on using the detect method? It doesn't seem to return the correct integer of the Hmd in use.
Any advice on how to get a reference to the current HMD would be greatly appreciated. My apologies if this has been discussed before.
Does anyone know how to get whether the health and safety warning is displayed in a unity project? I think I am just missing something really simple.
Reading the API, it looks like I call it like this:
if(_hmd.GetHSWDisplayState().Displayed)
{
Debug.Log("warning is displayed");
}
My main problem is I don't understand how to create an object reference to Ovr.hmd. I have an OVRCamera in my project, is there some way I can get the IntPtr hmdPtr of the head mounted display in use? Or, is it more of a standard to call the static method like this:
_hmd = Ovr.Hmd.Create(Ovr.Hmd.Detect());
If the above code is what I need to use, any advice on using the detect method? It doesn't seem to return the correct integer of the Hmd in use.
Any advice on how to get a reference to the current HMD would be greatly appreciated. My apologies if this has been discussed before.
