Skip to content

Commit 7ed68d9

Browse files
committed
small fixes in comments and names
1 parent 73b7bcb commit 7ed68d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
namespace UnityEngine.InputSystem.Editor
99
{
1010
/// <summary>
11-
/// Force restart if InputSystem package is added to activate and initialize it on managed side.
12-
/// Set Project Settings input handling to reflect the presence of the Input System package, since it is not available in the UI.
11+
/// Force restart if InputSystem package is removed to activate and initialize it on managed side.
12+
/// Set Project Settings input handling to InputManager once the package is removed.
1313
/// </summary>
1414
internal class InputSystemPackageControl
1515
{
@@ -24,11 +24,11 @@ static void SubscribePackageManagerEvent()
2424

2525
private static void CheckForInputSystemPackageRemoved(PackageRegistrationEventArgs packageArgs)
2626
{
27-
if (InputSystemAddedRemoved(packageArgs.removed))
27+
if (IsInputSystemRemoved(packageArgs.removed))
2828
HandleInputSystemRemoved();
2929
}
3030

31-
private static bool InputSystemAddedRemoved(ReadOnlyCollection<UnityEditor.PackageManager.PackageInfo> packages)
31+
private static bool IsInputSystemRemoved(ReadOnlyCollection<UnityEditor.PackageManager.PackageInfo> packages)
3232
{
3333
foreach (var package in packages)
3434
{
@@ -40,7 +40,7 @@ private static bool InputSystemAddedRemoved(ReadOnlyCollection<UnityEditor.Packa
4040

4141
private static void HandleInputSystemRemoved()
4242
{
43-
//set input handling to none
43+
//set input handling to InputManager
4444
EditorPlayerSettingHelpers.newSystemBackendsEnabled = false;
4545
if (EditorUtility.DisplayDialog("Unity editor restart required", "You've removed the input system package. This requires a restart of the Editor.", "Restart Editor", "Ignore (Not recommended)"))
4646
EditorApplication.OpenProject(Environment.CurrentDirectory);

0 commit comments

Comments
 (0)