上传YomovSDK

This commit is contained in:
Sora丶kong
2026-03-03 03:15:46 +08:00
parent 9096da7e6c
commit eb97f31065
6477 changed files with 1932208 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
using System;
using UnityEngine;
using UnityEngine.XR.OpenXR.Features.OculusQuestSupport;
namespace UnityEditor.XR.OpenXR.Features.OculusQuestSupport
{
[CustomEditor(typeof(OculusQuestFeature))]
[Obsolete("OpenXR.Features.OculusQuestSupport.OculusQuestFeatureEditor is deprecated. Please use OpenXR.Features.MetaQuestSupport.MetaQuestFeatureEditor instead.", false)]
internal class OculusQuestFeatureEditor : Editor
{
private SerializedProperty targetQuest;
private SerializedProperty targetQuest2;
static GUIContent s_TargetQuestLabel = EditorGUIUtility.TrTextContent("Quest");
static GUIContent s_TargetQuest2Label = EditorGUIUtility.TrTextContent("Quest 2");
void OnEnable()
{
targetQuest = serializedObject.FindProperty("targetQuest");
targetQuest2 = serializedObject.FindProperty("targetQuest2");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
EditorGUILayout.LabelField("Target Devices", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(targetQuest, s_TargetQuestLabel);
EditorGUILayout.PropertyField(targetQuest2, s_TargetQuest2Label);
serializedObject.ApplyModifiedProperties();
}
}
}