Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0b6
Issue ID
877939
Regression
No
[WebGL] MonoBehaviour.OnApplicationFocus not called when the project is first started
Reproduction steps:
1. Build the attached project to WebGL
2. Open the built index.html file in Firefox
3. Open the developer console to see the output (F12)
4. Click within the WebGL canvas while the Unity loading progress bar is shown.
Result: notice how there is no OnApplicationFocus callback. If you click the mouse button again then the callback will occur, but it doesn't occur until you click the mouse.
This is incorrect because the WebGL canvas actually does have focus and can receive mouse movements before you click a second time.
Reproducible on: 5.5.1p2, 5.6.0b7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
Add comment