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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Add comment