电晕模拟器垂直对齐

Corona simulator is vertically aligned

模拟器默认如下图Default Image

我希望我的模拟器看起来像这样 New Image。我已经旋转了,但是当我再次打开项目时它显示默认值 image.I 希望模拟器处于水平状态 orientation.Please 帮助

您可以通过在 build.settings 文件中将方向的默认值更改为 landscapeRight 或 landscapeLeft 来将模拟器的方向从纵向更改为横向。或者,当您创建一个新项目时,您可以单击默认方向下的横向单选按钮,将模拟器的方向更改为横向模式。

确保您的 build.settings

中包含以下代码
settings =
{
    orientation =
    {
        default = "landscapeLeft",    -- Initial launch orientation
        -- use "landscapeLeft" - Device in the horizontal position with the home button at the left 
        -- or
        -- "landscapeRight" - Device in the horizontal position with the home button at the right
        supported = {"landscapeLeft"},  -- Table of allowed options for auto-orientation 
    },
}

您可以在 App Orientation 部分的文档中找到更多信息。