Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2018.4.7f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1185339
Regression
No
Text elements placed over Image creates additional batch for Font Texture
How to reproduce:
1. Open the "Text batch.zip" project
2. Open the "SampleScene" scene
3. Window > Analysis > Frame Debugger >> Enable
4. Check the "Draw Meshes" under Canvas.RenderOverlays
Actual result: Two of them are for the same "Font Texture".
Expected result: Only one call for "Font Texture" is made.
Reproducible with: 2020.1.0a5, 2019.3.0b4, 2019.2.7f2, 2018.4.10f1, 2017.4.32f1.
Notes:
- The issue is reproducible when a Text element is placed over an Image element.
- The issue doesn't reproduce if the elements are placed under separate Canvases.
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
- NullReferenceException when setting 'isTextObjectScaleStatic' to false on a disabled TextMeshPro GameObject
- Shader Stripping Custom Options disappear when exiting Play mode without reloading Domain
- Decals do not get projected when 'Rendering Layer Mask' on a GameObject is 23rd Layer or above due to encoding/decoding issues
- Deriving from SearchContextAttribute doesn't always work
- Scripting API documentation is missing for macOS editor extensions
Resolution Note (2020.1.X):
This is how the system works currently. all the text not over another image will have a "depth" of zero, where the text overtop of the image will have a "depth" > 0 when the system then tried to combine all depth 0 can be batched but the other can not.
Those few draw calls should be of no concern really.