Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error about mesh UVs in Unity 5.6 #7

Open
hedgefield opened this issue Apr 16, 2017 · 2 comments
Open

Error about mesh UVs in Unity 5.6 #7

hedgefield opened this issue Apr 16, 2017 · 2 comments

Comments

@hedgefield
Copy link

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
Copy link
Author

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)

@n-yoda
Copy link
Owner

n-yoda commented Apr 19, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants