Search Issue Tracker
By Design
Votes
0
Found in
6000.0.34f1
6000.1.0b1
Issue ID
UUM-95758
Regression
Yes
Mesh Rendered GameObject using the SpriteLitDefault Material becomes invisible when animating with the URP Sprite-Lit-Default Shader
How to reproduce:
1. Open the attached “IN-92544” project
2. Open the “SampleScene”
3. Enter Play mode
4. Observe the result
Expected result: The square remains on the screen
Actual result: The square disappears
Reproducible in: 2023.1.0a11, 6000.0.34f1, 6000.1.0b1
Not reproducible with: 2021.3.48f1, 2022.3.57f1, 2023.1.0a10
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: The issue does not occur when the GameObject material or the Animator Shader is set to Sprites-Default
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
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
- High "Total" value of the "TerrainManager.CullAllTerrains" when generating terrain
- UI Layout rebuild triggered by a rounding error when using TextMesh Pro
- Sprite Shape Corners and Edges are invisible when a closed Sprite Shape is used
- Script icon Gizmos cause lag/performance issues in Scene view even when the Scene Camera is not pointed at Gizmos
Resolution Note:
Sprite-Lit-Default , or ShaderGraph shaders using Sprite Lit /Sprite Custom Lit materials are only meant to be used with Sprite Renderers in URP 2D. They are not meant to be supported with every renderer.
In this case, the 2D specific properties (unity_SpriteColor and unity_SpriteProps) are not being set for Mesh Renderers, which makes them not render. If users want to use Mesh Renderer, the suggestion is to create a custom Shader / ShaderGraph that does not use unity_SpriteColor and unity_SpriteProps properties.