-
Notifications
You must be signed in to change notification settings - Fork 322
CHANGE: Refactor class conditional guards #2183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
76cefa0
adb406a
99cd2d5
27b2800
bf80417
9c64247
dd2569b
893531c
06af488
1b146a4
87a0c2a
b844571
e482c47
0753c0c
715701f
7ca0212
f7562ef
657edfc
4b05bae
0d7b48f
b44ff31
8519aa3
b6f4d64
a9e7791
d33d4be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// ENABLE_VR is not defined on Game Core but the assembly is available with limited features when the XR module is enabled. | ||
#if !DISABLE_BUILTIN_INPUT_SYSTEM_OCULUS | ||
// Docs generation is skipped because these are intended to be replaced with the com.unity.xr.oculus package. | ||
#if UNITY_INPUT_SYSTEM_ENABLE_XR && (ENABLE_VR || UNITY_GAMECORE) && !DISABLE_BUILTIN_INPUT_SYSTEM_OCULUS && !UNITY_FORCE_INPUTSYSTEM_XR_OFF && !PACKAGE_DOCS_GENERATION | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for removing this messy define. Are we ok with removing the UNITY_GAMECORE as well? I assume that was something Microsoft related? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes we only added UNITY_GAMECORE to these places so that when you're on the gamecore platform these classes will be compiled. Since we are no longer wrapping entire classes they will always be compiled. |
||
using UnityEngine.InputSystem; | ||
using UnityEngine.InputSystem.Controls; | ||
using UnityEngine.InputSystem.Layouts; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm understanding this correctly: this means that these API won't be published? Any reason why? I'm just out of context probably.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm maybe I need to change this then. Besides the XRHMD devices, I started using this file to stop some xml errors I was getting from the yamato tests. I assumed the older define logic was hiding those same errors.