- Home /
Question by
AAK_Lebanon · Jun 21, 2019 at 08:15 AM ·
crop
How To Copy Part of a sprite at run time
Hi, Let's say that I have a sprite on the screen named 'Source', and I want to put above that sprite another sprite called 'Cropper' that will determine the rectangle area that I want to copy the texture from. I know that I should use Texture2D.GetPixels, but that function require a rectangle area to start reading from. my problem is how I can get that rectangle area from the 'Cropper' sprite?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612203605im_/https://answers.unity.com/themes/thub/images/avi.jpg)