Unity Issue Tracker - "OnApplicationQuit" is called when "Application.wantsToQuit" returns false
Fixed
UUM-97654
"OnApplicationQuit" is called when "Application.wantsToQuit" returns false
Unity: Scripting Runtime
Fixed
6.2.X
6000.2.0a7
Won't Fix
6.1.X
6.0.X
2023.3.X
2022.3.X
Due to risk, this fix will not be backported.
Due to risk, this fix will not be backported.
After evaluating risks, this fix will not be backported to long term support streams.
After evaluating risks, this fix will not be backported to long term support streams.
Reproduction steps:
1. Open the attached “IN-93668” project
2. Build and Run the project (File > Build And Run)
3. Uncheck the “Allow Application Quit” checkbox
4. Try closing the Player window
5. Observe the console
Expected result: “OnApplicationQuit” is not called or documentation to be updated on when “OnApplicationQuit” is called
Actual result: “OnApplicationQuit” is called