# Rotate

> Create a Rotate struct that corresponds to a rotation around the specified axis by the provided Angle.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## Rotate(Angle, Vector3)

Create a Rotate struct that corresponds to a rotation around the specified axis by the provided [Angle](/engine/6000.5/script-reference/unityengine/uielements/angle.md).

```csharp
public Rotate(Angle angle, Vector3 axis)
```

### Parameters

**** (\[Angle]\(/engine/6000.5/script-reference/unityengine/uielements/angle)): **** (\[Vector3]\(/engine/6000.5/script-reference/unityengine/vector3)):&#x20;

### 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](/engine/6000.5/script-reference/unityengine/uielements/angle.md).

```csharp
public Rotate(Angle angle)
```

### Parameters

**** (\[Angle]\(/engine/6000.5/script-reference/unityengine/uielements/angle)):&#x20;

## Rotate(Quaternion)

Create a Rotate struct that corresponds to a rotation specified by the provided [Quaternion](/engine/6000.5/script-reference/unityengine/quaternion.md).

```csharp
public Rotate(Quaternion quaternion)
```

### Parameters

**** (\[Quaternion]\(/engine/6000.5/script-reference/unityengine/quaternion)):&#x20;

### Remarks

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