Search Issue Tracker
Fixed
Fixed in 2022.3.19f1, 2023.2.7f1, 2023.3.0b4
Votes
4
Found in
2022.3.16f1
2023.2.4f1
2023.3.0b1
Issue ID
UUM-59364
Regression
No
Errors "Shader error in 'Universal Render Pipeline/Particles/Unlit' : out parameters require l-value arguments" and "undeclared identifier 'unity_WorldToObject'" are thrown when building the project
How to reproduce:
1. Open the "IN_63889" project
2. In the Build Settings press Build
3. Wait until the build finishes
4. Observe the Console
Expected result: No errors in the Console
Actual result: Errors "Shader error in 'Universal Render Pipeline/Particles/Unlit': out parameters require l-value arguments at..." and "hader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier 'unity_WorldToObject' at..."
Reproducible with: 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Couldn't test with: 2021.3.33f1 (due to errors in the Console)
Reproducible on: Windows 10 Pro
Not reproducible on: No other environment tested
Notes:
- Reproducible on Windows Standalone and Android Platforms
- Reproducible with all "BatchRendererGroup Variants" options from the dropdown
- Reproducible on Vulkan and OpenGLES3 Graphics API
First lines of the errors:
1st error: Shader error in 'Universal Render Pipeline/Particles/Unlit': out parameters require l-value arguments at /Users/danielius.pliuskys/Downloads/IN-63889_brg-shooter/Library/PackageCache/com.unity.render-pipelines.universal@14.0.8/ShaderLibrary/ParticlesInstancing.hlsl(57) (on gles3) Compiling Subshader: 0, Pass: ForwardLit, Vertex program with DOTS_INSTANCING_ON PROCEDURAL_INSTANCING_ON
2nd error: Shader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier 'unity_WorldToObject' at /Users/danielius.pliuskys/Downloads/IN-63889_brg-shooter/Library/PackageCache/com.unity.render-pipelines.universal@14.0.8/ShaderLibrary/ParticlesInstancing.hlsl(57) (on gles3) Compiling Subshader: 0, Pass: ForwardLit, Vertex program with DOTS_INSTANCING_ON PROCEDURAL_INSTANCING_ON
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
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
- Editor freezes when handling Havok collision interactions between a thin collider and the player controller
- No blue outline is shown on a folder in the Project tab when an external file is being dragged over the folder
- Profiler - Taking you to the wrong section when using 'show'
-DarkTiger-
Jan 20, 2024 16:06
I have these particles errors with Lit and SampleLit too, when try to build for Windows, D3d12, Forward+ with Unity 2023.3.0b3 (same since 2023.3.0a8)
Repeated with (on vulkan) and (on d3d11):
Shader error in 'Universal Render Pipeline/Particles/Unlit': out parameters require l-value arguments at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)
Shader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier 'unity_WorldToObject' at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)
Shader error in 'Universal Render Pipeline/Particles/Simple Lit': undeclared identifier 'unity_WorldToObject' at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)
Shader error in 'Universal Render Pipeline/Particles/Simple Lit': out parameters require l-value arguments at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)
Shader error in 'Universal Render Pipeline/Particles/Lit': out parameters require l-value arguments at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)
Shader error in 'Universal Render Pipeline/Particles/Lit': undeclared identifier 'unity_WorldToObject' at ../Library/PackageCache/com.unity.render-pipelines.universal/ShaderLibrary/ParticlesInstancing.hlsl(57)
jonkuze
Jan 05, 2024 04:03
I am also seeing the same error in 2023.3.0b1. I provided my build error log on the WebGPU Forum Thread here:
https://forum.unity.com/threads/early-access-to-the-new-webgpu-backend-in-unity-2023-3.1516621/page-2#post-9562711