diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index 3f65367aab..dd5c450b29 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] - yyyy-mm-dd +### Fixed + +- Improved New Input System warning dialog, Native Device Inputs Not Enabled [UUM-132151]. + +### Changed + +### Added ## [1.19.0] - 2026-02-24 diff --git a/Packages/com.unity.inputsystem/InputSystem/InputSystem.cs b/Packages/com.unity.inputsystem/InputSystem/InputSystem.cs index cd155adeda..f52eb23e97 100644 --- a/Packages/com.unity.inputsystem/InputSystem/InputSystem.cs +++ b/Packages/com.unity.inputsystem/InputSystem/InputSystem.cs @@ -3587,11 +3587,27 @@ private static void ShowRestartWarning() !EditorPlayerSettingHelpers.newSystemBackendsEnabled && !Application.isBatchMode) { - 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. " + - "This means that no input from native devices will come through." + - "\n\nDo you want to enable the backends? Doing so will *RESTART* the editor."; + 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. " + + "\n\nThe Active Input Handling parameter must be set to \"Input System Package (New)\", under Project Settings > Player." + + "\n\nNote: Changing the active input handling requires to restart the Editor."; - if (EditorUtility.DisplayDialog("Warning", dialogText, "Yes", "No")) + bool userChoseEnableAndRestart; +#if UNITY_6000_3_OR_NEWER + userChoseEnableAndRestart = EditorUtility.DisplayDialog( + "Input System native platform backend not enabled", + dialogText, + "Enable & Restart", + "Don't Enable", + DialogOptOutDecisionType.ForThisSession, + "RestartInstalledInputHandlingWarning"); +#else + userChoseEnableAndRestart = EditorUtility.DisplayDialog( + "Input System native platform backend not enabled", + dialogText, + "Enable & Restart", + "Don't Enable"); +#endif + if (userChoseEnableAndRestart) { EditorPlayerSettingHelpers.newSystemBackendsEnabled = true; EditorHelpers.RestartEditorAndRecompileScripts();