Rect
Unity Rect struct extern binding for Ceramic. Represents a 2D rectangle defined by position and size.
Used throughout Unity for GUI positioning, texture coordinates, viewport definitions, and other 2D spatial data. The rectangle is defined by its bottom-left corner (x,y) and dimensions.
Instance Members
The x coordinate of the rectangle's bottom-left corner. In screen space, this is typically pixels from the left edge.
The y coordinate of the rectangle's bottom-left corner. In screen space, this is typically pixels from the bottom edge.
The width of the rectangle in the same units as x. Must be positive for a valid rectangle.
The height of the rectangle in the same units as y. Must be positive for a valid rectangle.
Creates a new Rect with the specified position and dimensions.
Name | Type | Description |
---|---|---|
x |
Single | The x coordinate of the rectangle's bottom-left corner |
y |
Single | The y coordinate of the rectangle's bottom-left corner |
width |
Single | The width of the rectangle |
height |
Single | The height of the rectangle |
Metadata
Name | Parameters |
---|---|
:nativeGen |
- |