Rotate
Provides rotation information for visual elements that rotates around the TransformOrigin. Positive values represent clockwise rotation.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<Rotate>
public struct Rotate : IEquatable<Rotate>
Constructors
Constructor | Description |
|---|---|
| Rotate(UnityEngine.Quaternion) | Create a Rotate struct that corresponds to a rotation specified by the provided Quaternion. |
| Rotate(UnityEngine.UIElements.Angle) | Create a Rotate struct that correspond to a rotation around the z axis by the provided Angle. |
| Rotate(UnityEngine.UIElements.Angle,UnityEngine.Vector3) | Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle. |
Properties
Property | Description |
|---|---|
| angle | The angle applied by the rotation. Positive values represent clockwise rotation and negative values represent counterclockwise rotation. |