2D Toolkit Forum

2D Toolkit => Support => Topic started by: inkoman on October 04, 2015, 11:30:17 pm

Title: Clipped Sprite Rotation While Preserving Original Rotation
Post by: inkoman on October 04, 2015, 11:30:17 pm
Hi,

I'm trying to figure out if there's a way to rotate a clipped sprite while maintaining the original texture's rotation. For 90-180-270 degrees, it works just fine, but I would like to make it so rotating the clipped sprite will "reveal" a sloped/slanted rectangle area of the image, but not rotate the actual image with it. I hope that makes sense... is there a way to do this, or is there some other method that I may have overlooked that achieves the same result?

Thanks!
Title: Re: Clipped Sprite Rotation While Preserving Original Rotation
Post by: unikronsoftware on October 05, 2015, 11:09:49 am
You can't do that with a clipped sprite. Look at the UI Mask demo, you can do that quite easily using the ui mask.