Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

Curvature

struct in UnityEngine.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Bi-axial curvature applied to a visual element's generated mesh. The element bends around its X axis by Curvature.x (curving the vertical extent) and around its Y axis by Curvature.y (curving the horizontal extent); the sign of each angle selects concave vs. convex.

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

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.

Constructors

Constructor Description
Curvature Create a Curvature that bends around the X axis by the given angle (curving the vertical extent), flat around the Y axis.

Static Methods

Method Description
None Returns a Curvature that applies no bend (flat).