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

uGUI

-

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.

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.