Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Rotate

Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle.
Read time 1 minuteLast updated 7 days ago

Definition

Rotate(Angle, Vector3)

Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle.
public Rotate(Angle angle, Vector3 axis)

Parameters

angle


Remarks

3D rotations are only expected to work on world space panels and will cause masking issues on overlay panels.

Rotate(Angle)

Create a Rotate struct that correspond to a rotation around the z axis by the provided Angle.
public Rotate(Angle angle)

Parameters

angle

Rotate(Quaternion)

Create a Rotate struct that corresponds to a rotation specified by the provided Quaternion.
public Rotate(Quaternion quaternion)

Parameters

quaternion

Remarks

3D rotations are only expected to work on world space panels and will cause masking issues on overlay panels.