Search Issue Tracker
Fixed in 4.6.1
Votes
1
Found in
4.6.0b20
Issue ID
640230
Regression
Yes
ImGUI Buttons break on iOS 8 when screen orientation is set through 'Screen.orientation'
To Reproudce:
1. Build the attached project to an iOS 8 device.
2. Notice that the "Left/Right" Buttons both react to touches, click "Switch Orientation"
3. In the newly loaded scene none of the buttons work. They don't react to input, but it seems that clicks are actually detected, if you click on any of the buttons this error:
iPhoneSixOrientationBug[203:7743] unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow: <UIWindow: 0x16f846d0; frame = (0 0; 320 480); gestureRecognizers = <NSArray: 0x16f88d90>; layer = <UIWindowLayer: 0x16f7b620>>
is thrown in xcode.
Sometimes some of the buttons are broken after launching the app, and the same error is thrown when clicking on them.
3. If you comment out the entire 'Awake' function in SetupScreenRoation.js and 'Start' in Button.js, all of the buttons work fine both in landscape and portrait mode. But the orientation is manually changed in Start all of them seem to be broken in Landscape mode (and sometimes in Portrait mode too).
Only reproducible on iOS 8, tested on iphone 5 & 6+ (8.0.0).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text cursor remains visible when hovering over Command Line Arguments scrollbar in Unity Hub
- UI Builder’s "Background" icons for Repeat Y/X, Position X/Y and Slice Type are low quality and blurry in the Inspector window
- “X” button in Editor version search filter is difficult to see when Unity Hub theme is set to Dark
- [Android] The y-value of Input.mouseScrollDelta is positive when scrolling in both directions in the Player
- Crash on TexturesD3D11Base::SetTexture when using DirectX11
Add comment