I have this code:
OVRManager.HMDMounted += HandleHMDMounted;
OVRManager.HMDUnmounted += HandleHMDUnmounted;
Application.runInBackground = true;
In the Start
method of a script. The callbacks are simple logging functions
void HandleHMDMounted() { Debug.Log("ON"); }
void HandleHMDUnmounted() { Debug.Log("OFF"); }
The code does not run- I never see any logs despite putting it on/taking it off. Why?
My OVR version is 1.18.1
, my Unity version is 2017.1.0f3
>I used the public bulletScore bullet to set the reference. In the Hierarchy i have a Scoring System empty that has the Score script attached and there is a part where you can add the bulletScore scipt. But what gameObject are you dragging & dropping ? A prefab ? Something in the scene ? The real object whose
– HydrometallurgyOnCollisionEnter
is called?