Search Issue Tracker
Fixed
Votes
0
Found in [Package]
10.5.0
Issue ID
1358351
Regression
No
[XR SDK] [URP] Field 'xr' in the class 'CameraData' is inaccessable, marked as protected
Reproduction steps:
1. Open the attached project ("IncorrectAPIReport.zip")
2. Open the console window
Expected result: No errors in the console
Actual result: Error in the console:
Assets\ErrorScript.cs(13,37): error CS0122: 'CameraData.xr' is inaccessible due to its protection level
Reproducible with: URP 10.5.1, 11.0.0, 12.0.0 (2020.3.17f1, 2021.1.17f1, 2021.2.0b7, 2022.1.0a5)
Not reproducible with: URP 7.7.1 (2019.4.29f1 Assets\ErrorScript.cs(13,37): error CS1061: 'CameraData' does not contain a definition for 'xr' and no accessible extension method 'xr' accepting a first argument of type 'CameraData' could be found (are you missing a using directive or an assembly reference?))
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
Resolution Note:
XR field is not marked as public by design because we are actively working on exposing XR related public fields and methods.
We understand the requests in this case. Exposing xr related public methods and fields are being worked on and the process could be followed here: https://github.com/Unity-Technologies/Graphics/pull/3557