ReferenceSpace settings different modes?

Is there a sample script teaching how to set the mode of REFERENCE_SPACE to XR_REFERENCE_SPACE_TYPE_VIEW?

Currently Unity does not support this references space. They have a hard coded flag with set origin modes.

/// <summary>
  ///   <para>This enum provides context to where the 0,0,0 point of tracking for InputDevices is.</para>
  /// </summary>
  public enum TrackingOriginModeFlags
  {
    /// <summary>
    ///   <para>TrackingOriginModeFlags.Unknown enumerates when the XRInputSubsystem was not able to set its tracking origin or has no tracking.</para>
    /// </summary>
    Unknown = 0,
    /// <summary>
    ///   <para>XRInputSubsystem tracks all InputDevices in reference to the first known location of a specific InputDevice when set to TrackingOriginModeFlags.Device.</para>
    /// </summary>
    Device = 1,
    /// <summary>
    ///   <para>XRInputSubsystem tracks all InputDevices in reference to a point on the floor when set to TrackingOriginModeFlags.Floor.</para>
    /// </summary>
    Floor = 2,
    /// <summary>
    ///   <para>XRInputSubsystem tracks all InputDevices in reference to an InputDevice with the InputDeviceCharacteristics.TrackingReference flag set when set to TrackingOriginModeFlags.TrackingReference.</para>
    /// </summary>
    TrackingReference = 4,
    /// <summary>
    ///   <para>XRInputSubsystem tracks all InputDevices in relation to a world anchor. This world anchor can change at any time, and is chosen by the runtime.</para>
    /// </summary>
    Unbounded = 8,
  }

That said, you can see the supported reference spaces using the following script.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.