How to recenter automatically on resume?
Last updated 1 year ago
shouldRecenterUponApplicationResume
Recenter position and rotation if value is true
using JMRSDK; using UnityEngine; public class TrackingExample : MonoBehaviour { void OnEnable() { JMRTrackerManager.Instance.SetRecenterUponApplicationResume(true); } }
JMRSystemActions.Instance.OnRecenterStart.AddListener(() => { Debug.log("On Recenter Start"); });
JMRSystemActions.Instance.OnRecenterCancelled.AddListener(() => { Debug.log("On Recenter Cancelled"); });
JMRSystemActions.Instance.OnRecenterEnd.AddListener(() => { Debug.log("On Recenter End"); });
JMRTrackerManager.Instance.Recenter()