I tried to add UVSprite to my objects, but I get this error at runtime:
Mesh.uv is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
I tried with both planes and cubes.
Oh, I forgot to add to readme the part about creating a quad. I’ve updated it right now.
You can create a quad object by selecting from menu GameObject -> Create Other -> Create Quad or by pressing CTLR+Q. This will create a simple 4 vertex plane, then add UVSprite and proceed with the rest of instructions. See examples in example scene, they should give you an idea on how a sprited object should look. 😉
This website uses functional cookies to improve your experience, no personal data is collected while browsing. We'll assume you're ok with this. Cookie settingsACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. This site does not use any kind of third-party cookie and absolutely no kind of user tracking. See Privacy & Cookie policy for details.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information. See Privacy & Cookie policy for details.
2 replies on “Unity3D 2D Tools”
I tried to add UVSprite to my objects, but I get this error at runtime:
Mesh.uv is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
I tried with both planes and cubes.
Oh, I forgot to add to readme the part about creating a quad. I’ve updated it right now.
You can create a quad object by selecting from menu GameObject -> Create Other -> Create Quad or by pressing CTLR+Q. This will create a simple 4 vertex plane, then add UVSprite and proceed with the rest of instructions. See examples in example scene, they should give you an idea on how a sprited object should look. 😉