Search Issue Tracker
Fixed
Fixed in 6000.2.0a10
Votes
1
Found in
2021.3.44f1
2022.3.47f1
6000.0.21f1
6000.1.0a7
6000.2.0a1
Issue ID
UUM-87270
Regression
No
Value of the "OnApplicationFocus" is "True" when Player loses the focus before it launches
Reproduction steps:
1. Open the attached "repro_IN-84443" project
2. Go to "File -> Build Settings..." (or "File -> Build Profiles" on Unity 6)
3. Add "Scenes/SampleScene" to build index
4. Press "Build" and wait for the build to finish
5. Double-click the built .exe
6. While it's loading (before the splash screen appears), focus a window of any other application
7. Once the Player launches, in the File Explorer, go to "C:\Users\[user]\AppData\LocalLow\DefaultCompany\Focus" and open "Player.log"
8. Observe the value of "OnApplicationFocus"
Expected result: The value of "OnApplicationFocus" is "False"
Actual result: The value of "OnApplicationFocus" is "True"
Reproducible with: 2021.3.44f1, 2022.3.47f1, 6000.0.21f1
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environment tested
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Popup windows spawn on the incorrect monitor when the Editor is placed near the boundary of scaled monitor next to a monitor with different scaling
- Hidden Tabs do not shift into empty space after closing visible Tabs
- [Android] Application not deployed on a device when "activity-alias" is used in the AndroidManifest
- Shader compile process adds shader ID to the constant buffer name when the word "Globals" is being used in Vulkan
- Audio Mixer Snapshot link to the documentation isn’t working
Add comment