Search Issue Tracker
Duplicate
Votes
1
Found in
5.6.0f2
Issue ID
898657
Regression
No
AddUIVertexTriangleStream() replaces vertices instead of adding them and doesn't update UV2/UV3
When trying to add a set of vertices with AddUIVertexTriangleStream, this function replaces the vertices instead. Also, it doesn't update UV2 and UV3.
Steps to reproduce:
1) Open the attached project.
2) In the Hierarchy, select Canvas > Image.
3) On the attached script, toggle 'Use Set Vert'.
- The image in Game view becomes black.
This happens because AddUIVertexTriangleStream doesn't write to UV2/UV3. The following call is used internally:
CanvasRenderer.SplitUIVertexStreams(verts, m_Positions, m_Colors, m_Uv0S, m_Uv1S, m_Normals, m_Tangents, m_Indices);
'GenerateUV2andUV3.cs' is responsible for the calls in this project.
In Mono backend, SplitUIVertexStreams replaces the vertices, when it should be adding them.
Reproduced on:
2017.1.0b1, 5.6.0f3, 5.5.2p4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Add comment