Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Curvature

Bi-axial curvature applied to a visual element's generated mesh. The element bends around its X axis by _x (curving the vertical extent) and around its Y axis by _y (curving the horizontal extent); the sign of each angle selects concave vs. convex.
Read time 1 minuteLast updated 10 days ago

Definition

public struct Curvature : IEquatable<Curvature>

Remarks

Curvature describes surface shape only — placement and orientation still come from the element's transform. It is only visually meaningful on world-space panels.

Constructors

Constructor

Description

Curvature(UnityEngine.UIElements.Angle)Create a Curvature that bends around the X axis by the given angle (curving the vertical extent), flat around the Y axis.
Curvature(UnityEngine.UIElements.Angle,UnityEngine.UIElements.Angle)Create a Curvature that bends by the given angles around the X (x) and Y (y) axes.

Properties

Property

Description

xThe bend angle around the X axis. The vertical extent curves; the sign selects concave vs. convex.
yThe bend angle around the Y axis. The horizontal extent curves; the sign selects concave vs. convex.

Static Methods

Method

Description

NoneReturns a Curvature that applies no bend (flat).