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
- "Customize handled extensions" part in the External Tools settings tab is not aligned with other properties
- Editor Diagnostics foldouts do not open when clicked on the foldout title
- [UI Builder] Visual Elements are not placed at the mouse cursor position when Absolute Position Placement is enabled
- "Width" and "Height" text is misaligned with slider ends in Screen Match Mode Parameters section of Panel Settings Asset
- Editor does not quit when Editor is not in focus and any floating window is opened
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.