Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


autorotateToPortrait

Enables auto-rotation to portrait.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool autorotateToPortrait { get; set; }

Remarks

This property is used when Screen.orientation is set to ScreenOrientation.AutoRotation.