Repository navigation
FIX: [Port] [UUM-151403] [Input System] Fixed actions enabled during startup being disabled - #2500
Conversation
…y Mode with domain reload disabled and in Player builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Harness Review
The change removes the reset that disabled startup actions and adds callback cleanup on Play Mode exit, but the regression tests do not reliably select their intended reload configuration.
Reviewed commit 98fd21c
🤖 Helpful? 👍/👎
|
|
||
| static void SetDomainReloadDisabled(bool disabled) | ||
| { | ||
| EditorSettings.enterPlayModeOptions = disabled |
There was a problem hiding this comment.
The disableDomainReload=true case still reloads the domain with the checked-in Unity 6000.0 settings, leaving s_EarlyAction null after ExitPlayMode. The project sets enterPlayModeOptionsEnabled to false, and SetDomainReloadDisabled only changes enterPlayModeOptions. Unity 6000.0 ignores those options until enterPlayModeOptionsEnabled is enabled. The assertion on s_EarlyAction.enabled then throws, and the callback test also runs with the wrong reload configuration. Save enterPlayModeOptionsEnabled alongside the existing options. Enable it when configuring the tests. Restore it in TearDown.
🤖 Helpful? 👍/👎
There was a problem hiding this comment.
Fixed in ae4c058, the tests now enable the enter play mode options and save and restore the enabled flag too.
…actually disabled on 6000.0, and fixed saving and restoring them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/review |
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2500 +/- ##
===========================================
+ Coverage 78.96% 79.01% +0.04%
===========================================
Files 767 768 +1
Lines 140949 141125 +176
===========================================
+ Hits 111305 111504 +199
+ Misses 29644 29621 -23 Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
💡 Harness Review
The change removes the startup action-state reset and adds callback cleanup when leaving Play Mode. I examined initialization order, callback subscription lifetimes, and the new domain-reload tests, and found no new actionable issues.
Reviewed commit ae4c058
🤖 Helpful? 👍/👎
Description
Port of the Editor fix for UUM-151403. Actions enabled early in startup (e.g. in a
SubsystemRegistrationcallback or an Entities system'sOnCreate) were being disabled by theBeforeSceneLoadhook inInputActionState. It ran in the Editor with domain reload disabled and on every Player launch. Removed the hook and, with domain reload disabled, exiting Play Mode now removes theonActionChangeandonActionControlsChangedcallbacks added during Play Mode. Callbacks added in Edit Mode, or owned by a Unity object that still exists such as an open Editor window, are kept.Testing status & QA
Added
InputActionStatePlayModeTests, which enters real Play Mode with domain reload on and off. Ran locally in 6000.3.25f1 batchmode with-nographics:InputActionsEditorTests,InputActionReferencePropertyDrawerEditorTests,CustomProcessorEnumTest), so need to see them on CI.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.