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

I think a command should be added to hide popwindow below #60

Closed Bian-Sh closed 3 years ago

Bian-Sh commented 3 years ago

image

a command named,emmm... , perhaps "pophide/popshow" ,and save changes to PlayerPrefs should be good. if possible how about adding a setting panel for UnityIngameDebug Console itself .

yasirkula commented 3 years ago

You mean a console command to disable the popup? If a user did that, how would they open the console window again?

Settings panel is a common occurrence in such plugins and would be a nice addition to this plugin, as well. I don't have time for this feature right now but in the future, why not.

Bian-Sh commented 3 years ago

Q:how would they open the console window again? A: For Standalone Platform use shortcut "~" which you have surpported and for mobile app just set a simple guesture as this repo do. image

yasirkula commented 3 years ago

Developers can already disable the popup via IngameDebugConsole prefab's inspector and set the shortcut key as they desire. Plugin doesn't have built-in gesture detection but developers can implement gesture detection on their own and toggle the console window via DebugLogManager.Instance functions. If a developer configured the popup to be visible, I don't think users should have the ability to disable the popup; the developer enabled the popup for a reason.

If you want to give users the ability to toggle popup's visibility in your project, you can add the following command to your script:

[ConsoleMethod( "popup_off", "Disables the debug popup" )]
public static void DisablePopup()
{
    DebugLogManager.Instance.PopupEnabled = false;
}
Bian-Sh commented 3 years ago

yes ,add this command can enrich internal commands of this plugin but actully is not necessary ;