How to clip simple sprite?

Hi,
I want to know what is the simplest solution to clip individual sprite?
suppose my sprite is 100x100 and i want to draw 100x90 or 100x80
I know we have ClippingNode but it makes code messy, is there simple way?
I am using v3.2

thanks.

Sure, you can adjust the content size and the texture rect of the sprite to only draw the parts you want to draw.

see…

setContentSize
setTextureRect

lol
how can i forget setTextureRect…
thanks :wink: