# autorotateToPortrait

> Enables auto-rotation to portrait.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool autorotateToPortrait { get; set; }
```

### Remarks

This property is used when [Screen.orientation](/engine/6000.0/script-reference/unityengine/screen/orientation.md) is set to [ScreenOrientation.AutoRotation](/engine/6000.0/script-reference/unityengine/screenorientation/autorotation.md).
