Forum Discussion
panmaster
10 years agoExpert Protege
Unity 5.3 how recenter camera VR
Hi, a simple question
How to recetner normal VR camera in Unity 5.3?
I am starting with, but gives an error
How to recetner normal VR camera in Unity 5.3?
I am starting with, but gives an error
using UnityEngine;
using System.Collections;
using VR= UnityEngine.VR;
public class recenter : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown (KeyCode.R)) {
VR.InputTracking.Recenter ();
}
}
}
2 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionWhat does the error message say?
Also, I believe you can just call it like this:
using UnityEngine.VR;
...
InputTracking.Recenter() - panmasterExpert Protege
"cybereality" wrote:
What does the error message say?
Also, I believe you can just call it like this:
using UnityEngine.VR;
...
InputTracking.Recenter()
OK this works,thx!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago
- 5 years agoAnonymous
- 3 years ago