How do I get a sprite sub-image?

I’d like to take a random rectangular section cut 0ut of a sprite’s image and create a new rectangular sprite with the cut of the image on it. I’ve looked around the documentation and can’t seem to find anything referring to sub-images or even getting small parts of sprite. Any ideas guys?

Thanks in advance!

Look up Texture2D.GetPixels and SetPixels.

–Eric