UIRectangularMask
Clips rendering of child UI elements to a rectangular region.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIRectangularMaskcomponent.
How to Use
- Get the component with
myObject.findComponent(UIRectangularMask.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIRectangularMask comp = myObject.findComponent(UIRectangularMask.class);
if (comp != null) {
// No exposed properties in the Java API
}