Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryRecenter()

Centers the tracking features on all InputDevice s to the current position and orientation of the head-mounted device.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public bool TryRecenter()

Returns

Type

Description

boolTrue if the method recenters the XRInputSubsystem. Returns false otherwise.

Remarks

This can fail depending on the TrackingOriginMode of the subsystem does not support recentering.