Search Issue Tracker
By Design
Votes
0
Found in
6000.0.33f1
6000.1.0b1
Issue ID
UUM-91953
Regression
Yes
"Material '...' has _TexelSize / _ST texture properties which are not supported by 2D SRP Batcher...” warning is logged when the Shader is SRB Batcher compatible
Reproduction steps:
1. Open the attached “BugReportProject” project
2. Open the “Assets/Scenes/SampleScene” Scene
3. Enter Play Mode
4. Observe the Console
Expected result: No material warning is logged
Actual result: “Material ‘Character_Mat’ has _TexelSize / _ST texture properties which are not supported by 2D SRP Batcher. SRP batching will be disabled for 2D Renderers using this Material.” warning is logged
Reproducible with: 6000.0.19f1, 6000.0.33f1, 6000.1.0b1
Not reproducible with: 2021.3.47f1, 2022.3.55f1, 6000.0.18f1
Reproducible on: macOS Sequoia 15.1.1 (M1 Max), Windows 11
Not reproducible on: No other environments tested
Notes: If there are Burst errors in the Console, delete the Library folder and try the reproduction steps again
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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
Resolution Note:
By design, 2D SRP-Batcher does not support access of TexelSize or Offset property in Shader. It seems the shader Assets/BattleSdMatAndShader/URP Unlit Stencil/URP_Unlit_Gamma__OutlineStencil.shader is accessing TexelSize (_MainTex_ST) property. You can either update the shader to not use it [or] ignore the warning.