Search Issue Tracker
By Design
Votes
0
Found in [Package]
8.0.1
Issue ID
1230710
Regression
No
[URP] Shader.renderQueue does not return the correct value for shaders when executing Unity in batchmode
How to reproduce:
1. Open user-submitted project (renderpipeline_batchmode.zip)
2. In the Menu bar select Test > Print Render Queues
3. Exit Unity
4. Launch the project in batchmode with the arguments -batchmode -quit -executeMethod NewScript.PrintRenderQueues
5. Open Editor-prev.log(generated from the Editor) and Editor.log(generated in batchmode)
6. Compare the logs(e.g. Universal Render Pipeline/Terrain/Lit)
Expected result: the values from Editor and Batchmode match
Actual result: the values from Editor and Batchmode are different
Reproducible with: 2019.3.7f1, 2020.1.0b3, 2020.2.0a5
Could not test with: 2017.4.38f1(package unavailable), 2018.4.20f1(package version incompatible with shader)
Reproducible with package versions: 5.7.2, 8.0.1
Could not test with package versions: 4.10.0(undeclared identifier '_BaseMap_ST' in shader)
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This value depends on the render pipeline being used; SRPs are not loaded until rendering happens, so in batch mode, if no rendering has happened, materials are only loaded as if the built in renderer is used. By contrast as the Editor has already rendered at last an empty scene the SRP has been loaded, and so in that situation you will see the expected values here.