From 750fccaaaaf6f4f86b4cfcc28bd0b4c971c87638 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 6 Mar 2023 17:18:33 +0100 Subject: [PATCH 1/2] Improve Unity XR-Oculus detection --- Editor/HumanoidControl/Configuration_Editor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Editor/HumanoidControl/Configuration_Editor.cs b/Editor/HumanoidControl/Configuration_Editor.cs index 099260e..f357e7b 100644 --- a/Editor/HumanoidControl/Configuration_Editor.cs +++ b/Editor/HumanoidControl/Configuration_Editor.cs @@ -1120,6 +1120,9 @@ namespace Passer.Humanoid { return false; if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.management")) return true; + else if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.oculus")) + // Somehow management is no longer available when Oculus is used + return true; else if (ConfigurationCheck.packageNameList.Contains("com.unity.xr.openxr")) // Somehow management is no longer available when OpenXR is used return true; From 43cf7767c417b6efad3e7a5209270055d0e69902 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 7 Mar 2023 12:11:37 +0100 Subject: [PATCH 2/2] Updated inheritance --- Editor/Tools/Input/ControllerInput_Editor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/Tools/Input/ControllerInput_Editor.cs b/Editor/Tools/Input/ControllerInput_Editor.cs index 7d95f7c..ae97030 100644 --- a/Editor/Tools/Input/ControllerInput_Editor.cs +++ b/Editor/Tools/Input/ControllerInput_Editor.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace Passer { using Humanoid; - [CustomEditor(typeof(ControllerInput))] + [CustomEditor(typeof(ControllerInput), true)] public class ControllerInput_Editor : Editor { protected ControllerInput controllerInput;