yasirkula / UnityIngameDebugConsole

A uGUI based console to see debug messages and execute commands during gameplay in Unity
MIT License
2.14k stars 224 forks source link

when i matter UnityIngameDebugConsole to the BoatAttack project, I get this error. #67

Closed ImanCol closed 2 years ago

ImanCol commented 2 years ago

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings. UnityEngine.Input.get_mousePosition () (at <18652b5914b14e07a74076a4608f13e3>:0) UnityEngine.UI.MultipleDisplayUtilities.GetMousePositionRelativeToMainDisplayResolution () (at E:/Program Files/Unity Hub/Editor/2019.4.16f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/MultipleDisplayUtilities.cs:40) UnityEngine.EventSystems.BaseInput.get_mousePosition () (at E:/Program Files/Unity Hub/Editor/2019.4.16f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/InputModules/BaseInput.cs:75) UnityEngine.EventSystems.StandaloneInputModule.UpdateModule () (at E:/Program Files/Unity Hub/Editor/2019.4.16f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/InputModules/StandaloneInputModule.cs:183) UnityEngine.EventSystems.EventSystem.TickModules () (at E:/Program Files/Unity Hub/Editor/2019.4.16f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:331) UnityEngine.EventSystems.EventSystem.Update () (at E:/Program Files/Unity Hub/Editor/2019.4.16f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:344)

yasirkula commented 2 years ago

Are both the legacy and the new input systems active at the same time? If only the new Input System is active, please see: https://github.com/yasirkula/UnityIngameDebugConsole#new-input-system-support

ImanCol commented 2 years ago

Are both the legacy and the new input systems active at the same time? If only the new Input System is active, please see: https://github.com/yasirkula/UnityIngameDebugConsole#new-input-system-support

Correct, I missed clicking on Replace. Now it works. image image