1
NGUI 3 Support / Re: After I upgraded to NGUI 3.11.0b or 3.11.0c, it shows following errors
« on: December 04, 2016, 07:29:38 PM »
I'm on 5.3.5, and I'm seeing the same exception. It seems like mesh.SetUVs will throw an exception (at least on this version of Unity) if you pass null. I pulled the if check out and wrapped it around the call, and now all runs fine.
I'm just not sure if there needs to be an else clause that passes an empty List<Vector4>.
- //OLD LINE: mMesh.SetUVs(1, (uv2 != null && uv2.Count == vertexCount) ? uv2 : null);
- if (uv2 != null && uv2.Count == vertexCount)
- mMesh.SetUVs(1, uv2);
I'm just not sure if there needs to be an else clause that passes an empty List<Vector4>.
