unity-vertex-effects icon indicating copy to clipboard operation
unity-vertex-effects copied to clipboard

Error about mesh UVs in Unity 5.6

Open hedgefield opened this issue 7 years ago • 2 comments

Hi,

When I put a Unity UI with the Box Outline script in a scene in Unity 5.6, I get these console warnings:

Mesh.uv3 is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Canvas:SendWillRenderCanvases()

Mesh.uv4 is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Canvas:SendWillRenderCanvases()

Do you know what might be causing this?

hedgefield avatar Apr 16 '17 10:04 hedgefield

I solved it by removing all the version-dependent conditionals. Some bits of code were locked to a specific version of Unity, and the highest version mentioned was 5.5, so that code wasn't compiling.

You can use _OR_NEWER to future-proof the code (like #if UNITY_5_6_OR_NEWER)

hedgefield avatar Apr 17 '17 20:04 hedgefield

Thank you for reporting bug. Due to circumstances, I cannot commit until the end of this month.

FYI, I recommend an official asset called TextMesh Pro, instead of this repository. https://www.assetstore.unity3d.com/en/#!/content/84126

n-yoda avatar Apr 19 '17 02:04 n-yoda