FIX: Avoid disabling project-wide actions on shutdown#2346
FIX: Avoid disabling project-wide actions on shutdown#2346AswinRajGopal wants to merge 2 commits intodevelopfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
PR Code Suggestions ✨Explore these optional code suggestions:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
|||||||||
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## develop #2346 +/- ##
========================================
Coverage 77.95% 77.96%
========================================
Files 476 476
Lines 97453 97537 +84
========================================
+ Hits 75971 76043 +72
- Misses 21482 21494 +12 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Description
case: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-134130
Issue:
UI Toolkit now cleans up its internal objects when no UI component exists in the scene. That means
InputSystemProvider.Shutdown()can be called during play.Shutdown()callsUnregisterActions(), which disablesm_InputActionAsset. When the provider is usingInputSystem.actions(project‑wide actions), this shuts off all input for the game. This is an external side effect and not expected when UI Toolkit goes away.Fix: Only disable the action asset on shutdown if it is not the project‑wide asset. This keeps the existing init/enable behavior unchanged, but avoids disabling InputSystem.actions when UI Toolkit is shutting down.
Testing status & QA
Added new test.
Verified manually using repro project.
Overall Product Risks
Comments to reviewers
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.