Skip to content

Commit 68d9a53

Browse files
FIX: New Input System warning dialog is misleading when not using input system (#2358)
Co-authored-by: João Freire <joao.freire@unity3d.com>
1 parent f709f5d commit 68d9a53

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased] - yyyy-mm-dd
99

10+
### Fixed
11+
12+
- Improved New Input System warning dialog, Native Device Inputs Not Enabled [UUM-132151].
13+
14+
### Changed
15+
16+
### Added
1017

1118

1219
## [1.19.0] - 2026-02-24

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3587,11 +3587,27 @@ private static void ShowRestartWarning()
35873587
!EditorPlayerSettingHelpers.newSystemBackendsEnabled &&
35883588
!Application.isBatchMode)
35893589
{
3590-
const string dialogText = "This project is using the new input system package but the native platform backends for the new input system are not enabled in the player settings. " +
3591-
"This means that no input from native devices will come through." +
3592-
"\n\nDo you want to enable the backends? Doing so will *RESTART* the editor.";
3590+
const string dialogText = "The new Input System Package is installed, but not configured to enable native device input, such as keyboard, mouse, or gamepad actions. " +
3591+
"\n\nThe Active Input Handling parameter must be set to \"Input System Package (New)\", under Project Settings > Player." +
3592+
"\n\nNote: Changing the active input handling requires to restart the Editor.";
35933593

3594-
if (EditorUtility.DisplayDialog("Warning", dialogText, "Yes", "No"))
3594+
bool userChoseEnableAndRestart;
3595+
#if UNITY_6000_3_OR_NEWER
3596+
userChoseEnableAndRestart = EditorUtility.DisplayDialog(
3597+
"Input System native platform backend not enabled",
3598+
dialogText,
3599+
"Enable & Restart",
3600+
"Don't Enable",
3601+
DialogOptOutDecisionType.ForThisSession,
3602+
"RestartInstalledInputHandlingWarning");
3603+
#else
3604+
userChoseEnableAndRestart = EditorUtility.DisplayDialog(
3605+
"Input System native platform backend not enabled",
3606+
dialogText,
3607+
"Enable & Restart",
3608+
"Don't Enable");
3609+
#endif
3610+
if (userChoseEnableAndRestart)
35953611
{
35963612
EditorPlayerSettingHelpers.newSystemBackendsEnabled = true;
35973613
EditorHelpers.RestartEditorAndRecompileScripts();

0 commit comments

Comments
 (0)