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
- ScriptUpdater does not work correctly when Chinese(Simplified) language support is enabled and compiler messages are localized
- Crash on VFXValueWrapper::GetTexture when reimporting texture in use by out of bounds VFX
- Crash on RaiseException when watching an Interface Property
- Assembly definition "Any Platform" checkbox is useless and does not follow nested checkbox rules
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
Add comment