version 2.0.0

This commit is contained in:
srl87
2023-09-14 18:17:47 +08:00
parent 13e9d00b37
commit ca21423a06
953 changed files with 125887 additions and 21229 deletions

View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VIVE.OpenXR
{
/// <summary>
/// This component acts as a world space refernce point of the tracking space origin.
/// Add this component to the root of your VR camera rig in order to let other features to find the tracking space origin and apply positional and rotational offset when needed.
/// </summary>
[DisallowMultipleComponent]
public sealed class TrackingSpaceOrigin : MonoBehaviour
{
public static TrackingSpaceOrigin Instance { get { return m_Instance; } }
private static TrackingSpaceOrigin m_Instance = null;
private void Awake()
{
if (m_Instance != null)
{
Destroy(m_Instance);
}
m_Instance = this;
}
}
}