From 327dc8de9ed200688cf34216f34ca6ebdac3e8f1 Mon Sep 17 00:00:00 2001 From: De-Panther Date: Wed, 22 Nov 2023 10:52:04 +0200 Subject: [PATCH] Fix error when some packages are missing --- Packages/webxr-interactions/CHANGELOG.md | 3 +++ Packages/webxr-interactions/Runtime/InputSystem/HandMenu.cs | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Packages/webxr-interactions/CHANGELOG.md b/Packages/webxr-interactions/CHANGELOG.md index ba5c918a..9bc79228 100644 --- a/Packages/webxr-interactions/CHANGELOG.md +++ b/Packages/webxr-interactions/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Error when Input System package in project and no XR Interaction Toolkit package. + ## [0.19.0] - 2023-11-22 ### Added - Support for Unity Input System and XR Interaction Toolkit. diff --git a/Packages/webxr-interactions/Runtime/InputSystem/HandMenu.cs b/Packages/webxr-interactions/Runtime/InputSystem/HandMenu.cs index dd24faa4..a2e66fe2 100644 --- a/Packages/webxr-interactions/Runtime/InputSystem/HandMenu.cs +++ b/Packages/webxr-interactions/Runtime/InputSystem/HandMenu.cs @@ -1,9 +1,7 @@ -#if UNITY_INPUT_SYSTEM_1_4_4_OR_NEWER +#if UNITY_INPUT_SYSTEM_1_4_4_OR_NEWER && HAS_XR_INTERACTION_TOOLKIT using Unity.XR.CoreUtils.Bindings; using Unity.XR.CoreUtils.Bindings.Variables; using UnityEngine.Assertions; -#endif -#if HAS_XR_INTERACTION_TOOLKIT using UnityEngine.XR.Interaction.Toolkit.Inputs; using UnityEngine.XR.Interaction.Toolkit.Utilities; using UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.Primitives;