I bought this on the asset store for a gamejam project that needed some chunky sprites. Unfortunately the package doesn't work with spritesheets - the UVs get set to the entire sheet rather than the individual sprites.
I managed to fix this myself with the following uv calculations:
That's frustrating! I'm sorry that the plugin didn't correctly handle spritesheets right out of the box for your game jam project.
Thank you so much for taking the time to report this specific issue and, even more importantly, for providing the detail about the UV calculations you used to fix it. This kind of specific feedback is incredibly valuable for improving the asset.
I will improve the code based on your findings and make the code work with spritesheets for future updates.
← Return to unity plugin
Comments
Log in with itch.io to leave a comment.
I bought this on the asset store for a gamejam project that needed some chunky sprites. Unfortunately the package doesn't work with spritesheets - the UVs get set to the entire sheet rather than the individual sprites.
I managed to fix this myself with the following uv calculations:
frontUVs[i].x = Mathf.Lerp(u1, u2, Mathf.InverseLerp(frontBounds.min.x, frontBounds.max.x, frontVertices[i].x));
frontUVs[i].y = Mathf.Lerp(v1, v2, Mathf.InverseLerp(frontBounds.min.y, frontBounds.max.y, frontVertices[i].y));
That's frustrating! I'm sorry that the plugin didn't correctly handle spritesheets right out of the box for your game jam project.
Thank you so much for taking the time to report this specific issue and, even more importantly, for providing the detail about the UV calculations you used to fix it. This kind of specific feedback is incredibly valuable for improving the asset.
I will improve the code based on your findings and make the code work with spritesheets for future updates.