"Press 'R' to reset orientation" implementation in Unity
Sorry to be such a total noob. I know there have been other posts about this and I have read through them:
viewtopic.php?t=1162
viewtopic.php?f=37&t=20535
I created a script in Unity called RecenterView.js:
When I return to Unity from MonoDevelop, I have a red ! error message saying:
Assets/Scripts/RecenterView.js(10,25): BCE0005: Unknown identifier: 'OVRManager'.
Once I actually get this script to not have syntax errors, to what element of my project hierarchy will I attach this script?
Without this script, my project compiles fine and displays properly in my DK2.
Thank you kindly for your help.
viewtopic.php?t=1162
viewtopic.php?f=37&t=20535
I created a script in Unity called RecenterView.js:
#pragma strict
function Start () {
}
function Update () {
if (Input.GetKeyDown("left ctrl"))
{
OVRManager.display.RecenterPose();
}
}
When I return to Unity from MonoDevelop, I have a red ! error message saying:
Assets/Scripts/RecenterView.js(10,25): BCE0005: Unknown identifier: 'OVRManager'.
Once I actually get this script to not have syntax errors, to what element of my project hierarchy will I attach this script?
Without this script, my project compiles fine and displays properly in my DK2.
Thank you kindly for your help.
