API reference
API reference
Select your platform
No SDKs available
No versions available

WorldSpaceRect Class

Modifiers: final
Represents a UI element's bounding rectangle in world-space 3D coordinates. All four corners are provided to support non-axis-aligned panels (e.g., rotated or curved panels).

Signature

data class WorldSpaceRect(val topLeft: Vector3, val topRight: Vector3, val bottomLeft: Vector3, val bottomRight: Vector3)

Constructors

WorldSpaceRect ( topLeft , topRight , bottomLeft , bottomRight )
Signature
constructor(topLeft: Vector3, topRight: Vector3, bottomLeft: Vector3, bottomRight: Vector3)
Parameters
topLeft: Vector3
topRight: Vector3
bottomLeft: Vector3
bottomRight: Vector3

Properties

bottomLeft : Vector3
[Get]
Signature
val bottomLeft: Vector3
bottomRight : Vector3
[Get]
Signature
val bottomRight: Vector3
center : Vector3
[Get]
Signature
val center: Vector3
topLeft : Vector3
[Get]
Signature
val topLeft: Vector3
topRight : Vector3
[Get]
Signature
val topRight: Vector3