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
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<Curvature>
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 |
|---|---|
| x | The bend angle around the X axis. The vertical extent curves; the sign selects concave vs. convex. |
| y | The bend angle around the Y axis. The horizontal extent curves; the sign selects concave vs. convex. |
Static Methods
Method | Description |
|---|---|
| None | Returns a Curvature that applies no bend (flat). |