I think something is broken with the command
SetOrientationAllowed()
It works as expected when I set it to allow it to orientate either in Portrait 1 or Portrait 2; but when I try and set it to allow both orientations, then it only stays in Portrait 1 regardless of which way up the device faces.
// Works as expected
`SetOrientationAllowed( true, false, false, false )
// Works as expected
`SetOrientationAllowed( false, true, false, false )
// Doesn't work
`SetOrientationAllowed( true, true, false, false )
It seems to work ok however, when I do the same thing with Landscape 1 and 2.
Has anyone else noticed this? Or am I doing something wrong?