I’m just about finished my atlas generator, but I can’t figure out how to assign my sprite mesh uv’s to the Rect array that is returned by PackTextures.
The Rect represents the rectangle that a texture occupies on an atlas. It gives the values of x and y (for the top left coordinate), and width and height (for the scale of the Rect) to be used for setting up the sprite uv’s to be on the texture. Unfortunately, uv’s are represented by Vector2’s, not Rect’s. How does one change the uv’s to match the coordinates of a rectangle?
Thanks in advance.