Search Issue Tracker
Fixed in 2018.3.X
Votes
1
Found in
2018.1.0b8
2018.2.5f1
Issue ID
1075100
Regression
Yes
OnApplicationFocus() is not called upon entering Play Mode
How to reproduce:
1. Open tester-submitted project(OnApplicationFocus)
2. Open the scene 'SampleScene'
3. Enter Play Mode
Expected result: OnApplicationFocus method is called and returns 'true', thus enabling the 'Cube' GameObject
Actual result: OnApplicationFocus method is not called at all
Reproducible with: 2018.1.0b8, 2018.1.9f2, 2018.2.6f1, 2018.3.0a10
Not reproducible with: 2017.4.9f1, 2018.1.0b7
Notes:
The same issue applies to the built player - launching the application does not call the OnApplicationFocus method
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Develoop
Aug 28, 2018 07:01
Hope Unity dev team to fix soon the issue with OnApplicationFocus() ...