我在unity3d上创建了windows phone 8.1游戏。它仅支持横向定位。但我需要在游戏中使用WebView
以纵向模式加载页面。
如何强制WebView
以纵向模式加载内容?
答案 0 :(得分:0)
这不是我需要的,但现在我使用
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;
当WebView加载页面时,
DisplayInformation.AutoRotationPreferences = DisplayOrientations.Landscape;
关闭WebView并返回游戏时。