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
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
Add comment