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
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
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
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
Rotate(Quaternion)
Create a Rotate struct that corresponds to a rotation specified by the provided Quaternion.
public Rotate(Quaternion quaternion)
Parameters
Remarks
3D rotations are only expected to work on world space panels and will cause masking issues on overlay panels.