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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment