上传YomovSDK
This commit is contained in:
20
Packages/com.unity.xr.openxr/Runtime/input/OpenXRHmd.cs
Normal file
20
Packages/com.unity.xr.openxr/Runtime/input/OpenXRHmd.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using UnityEngine.InputSystem.Controls;
|
||||
using UnityEngine.InputSystem.Layouts;
|
||||
using UnityEngine.InputSystem.XR;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.XR.OpenXR.Input
|
||||
{
|
||||
[Preserve, InputControlLayout(displayName = "OpenXR HMD")]
|
||||
internal class OpenXRHmd : XRHMD
|
||||
{
|
||||
[Preserve, InputControl] ButtonControl userPresence { get; set; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void FinishSetup()
|
||||
{
|
||||
base.FinishSetup();
|
||||
userPresence = GetChildControl<ButtonControl>("UserPresence");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user