yasirkula / UnityIngameDebugConsole

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

Console text input recording keypresses when minimised with hotkey #30

Closed MickWPM closed 3 years ago

MickWPM commented 3 years ago

Description of the bug

When opening/closing the console with the hotkey, the hotkey character is included and the input is still added to the text input for the console.

Reproduction steps New scene Add InGameDebugConsole prefab Ensure toggle key is Backquote Run scene Press to open console **Note** that the console has the character in the console text input field Press to close the console Press W (simulate walking in game) Press to open console Note that the console has the `w in the console text input field

Platform specs

Windows (Asset store download)

Additional info

Pull request with fix option submitted. https://github.com/yasirkula/UnityIngameDebugConsole/pull/29 Passes all reproduction steps above. Note this clears the console text input on open/closing to remove the hotkey character input. Downside of this is user is no longer able to type something in the input field, minimise the console, reopen the console and have the initial typed text preserved. This may or may not be desired functionality.