Hello everyone! This question may sound a little confusing at first, but let me explain…
I need to find the bounds of a sprite, not the bounds of its bounding box. While
spriterenderer.bounds.max work just fine for sprites that are not rotated, the values become skewed if the sprites are rotated, since the bounding box stretches to encapsulate the entire sprite.
I’ll use a line renderer set to the sprite bounds dragged from left-to-right to demonstrate:
Notice how the line renderer does not follow the sprite, it follows the bounding box instead. I need the actual bounds of the sprite itself, not the bounds of the bounding box. Confusing question, I know, but I’d love to see if you guys have any solutions.
Here is a video of the line renderer progressing over the sprite. Notice how the line follows the top of the bounding box, and not the top of the sprite.
This is quite a tricky question to Google for!