Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X, 2022.1.X
Votes
1
Found in
2019.4
2020.3
2020.3.17f1
2021.2
2022.1
2022.2
Issue ID
1361962
Regression
No
"'BuildTargetDiscovery' is inaccessible due to its protection level" error when importing built-in shaders
Reproduction steps:
1. Create a new project
2. Go to Unity Download Archive
3. Open release notes of the version the project was created
4. Download the built-in shaders from additional resources
5. Extract the built-in shaders to the project's Assets folder
6. Observe the Console in the Editor
Expected result: No errors
Actual result: Multiple shader warnings and an error "Assets/builtin_shaders/Editor/StandardShaderGUI.cs(5,38): error CS0122: 'BuildTargetDiscovery' is inaccessible due to its protection level"
Reproducible with: 2019.4.30f1, 2020.3.17f1, 2021.1.20f1
Could not test with: 2021.2.0b11, 2022.1.0a7 (not available in the Download Archive)
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
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a4
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b6
Resolution Note (fix version 2021.2):
Fixed in 2021.2.11f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.29f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.36f1