Clips the visible image at X, Y, Width, Height.

Possible Values: String "X, Y, width, Height" or "" or null

where X, Y, Width, Height are Integer values. '""' or 'null' clear the clipRect.

If Omitted: The default value of "-1, -1, -1, -1" is used - meaning no clip rectangle.


myImageName.clipRect = "10, 10, 40, 40";


<clipRect>10, 10, 40, 40</clipRect>
<clipRect="10, 10, 40, 40" />


  • How is the clipRect positioned? Does the "X, Y" of the clipRect become the new hOffset, vOffset of the image?


  • The clipRect does not affect the position of the image at all. It only controls what is shown. If you clip using the example above, the image will appear to start 10 pixels down and right of where it actually starts, but it's real position has not been affected.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.