How to add an orientation in config.lua?

Hi,
I have got warning in the console when I try to add an orientation, where should I add the orientation table ?

I tried with “orientation = { … }” or "settings = { orientation = { … "

I copied and paste the terms from the doc, but I still have the warning :

WARNING: issue found in config.lua:
WARNING: unrecognized key: settings.orientation.default (string)
WARNING: unrecognized key: settings.orientation.supported[] (string)
WARNING: unrecognized key: settings.settings.orientation.default (string)
WARNING: unrecognized key: settings.settings.orientation.supported[] (string)

application =
{
	content =
	{
		width = 320,
		height = 480, 
		scale = "letterbox",
		fps = 60,
		
		--[[
		imageSuffix =
		{
			    ["@2x"] = 2,
			    ["@4x"] = 4,
		},
		--]]
	},
	settings = {
		orientation = {
			default = "landscapeLeft",
			supported = { "portrait", "landscapeLeft", "landscapeRight" },
		}
	},
	orientation = {
		default = "landscapeLeft",
		supported = { "portrait", "landscapeLeft", "landscapeRight" },
	}
}

Add it to build.settings file. See

1 Like

Great thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.