Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Screen.autorotateToPortrait

public static bool autorotateToPortrait;

Description

Enables auto-rotation to portrait.

This property is used when orientation is set to AutoRotation.