Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

angleThe angle applied by the rotation. Positive values represent clockwise rotation and negative values represent counterclockwise rotation.

Static Methods

Method

Description

NoneReturn a value of Rotate that applies no rotation