Steps to reproduce:
1. Open the attached project "PolySpatialRepro.zip"
2. Switch to Android or AndroidXR Build Profile
3. Build the project
4. Observe the Console window
Actual result: build fails with a compilation error: Library\PackageCache\com.unity.polyspatial@5a9db36dbe35\Runtime\Public\RenderPipelineSettingsUtils.cs(18,19): error CS0234: The type or namespace name 'PathTracing' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Expected result: the project builds successfully for Android
Reproducible with: PolySpatial 3.2.1 - 3.2.2 (6000.5.7f1, 6000.6.0b9, 6000.7.0a4)
Not reproducible with: PolySpatial 3.1.5 (6000.5.7f1, 6000.6.0b9, 6000.7.0a4)
Could not test on 6000.0.81f1 due to PolySpatial 3.2.1 requiring 6000.3.0f1 or newer, 6000.3.21f1 due to offending code being explicitly for 6000.4 and newer streams
Testing Environment: Windows 11
Not reproducible on: no other environment tested
Notes:
-Occurs when building for non-visionOS targets (Android, AndroidXR)
-The platform guard in RenderPipelineSettingsUtils.cs is "#if UNITY_6000_4_OR_NEWER && !(UNITY_VISIONOS | UNITY_IOS)", which lets UnityEngine.PathTracing be referenced on platforms where the namespace does not exist. Suggestion: "#if UNITY_6000_4_OR_NEWER && (UNITY_EDITOR | UNITY_STANDALONE)"