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
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
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.