Skip to content

Commit 2ffe8d6

Browse files
authored
Merge pull request #324 from De-Panther/fix_error_when_xri_missing
Fix error when some packages are missing
2 parents 248ae97 + 327dc8d commit 2ffe8d6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Packages/webxr-interactions/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Error when Input System package in project and no XR Interaction Toolkit package.
11+
912
## [0.19.0] - 2023-11-22
1013
### Added
1114
- Support for Unity Input System and XR Interaction Toolkit.

Packages/webxr-interactions/Runtime/InputSystem/HandMenu.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#if UNITY_INPUT_SYSTEM_1_4_4_OR_NEWER
1+
#if UNITY_INPUT_SYSTEM_1_4_4_OR_NEWER && HAS_XR_INTERACTION_TOOLKIT
22
using Unity.XR.CoreUtils.Bindings;
33
using Unity.XR.CoreUtils.Bindings.Variables;
44
using UnityEngine.Assertions;
5-
#endif
6-
#if HAS_XR_INTERACTION_TOOLKIT
75
using UnityEngine.XR.Interaction.Toolkit.Inputs;
86
using UnityEngine.XR.Interaction.Toolkit.Utilities;
97
using UnityEngine.XR.Interaction.Toolkit.Utilities.Tweenables.Primitives;

0 commit comments

Comments
 (0)