unity-vertex-effects
unity-vertex-effects copied to clipboard
Error about mesh UVs in Unity 5.6
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?
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
)
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