Skip to content

Clipping

Overview

The UI element supports clipping, meaning the UIElement will not be drawn outside of their boundaries.

A UIElement clipping is disabled by default, and can be enabled via the UIElement:clip(shouldClip:Boolean) method.

Note

Clipping does not support rotation transformation, meaning the clipped area will be the UIElement un-rotated bounding box


Learn about Creating Custom Controls