ドキュメント

Unity Engine

Unity Engine

Curvature

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.
読み終わるまでの所要時間 1 分最終更新 20日前

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).