ドキュメント

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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 TrackingOriginModeFlags of the subsystem does not support recentering.