lunar-unity-console icon indicating copy to clipboard operation
lunar-unity-console copied to clipboard

Feature request: onConsoleOpened/onConsoleClosed for editor

Open eandropov opened this issue 8 years ago • 2 comments

Hi, I'd like to be able to subscribe to onConsoleOpened/onConsoleClosed events in editor too. Also, it would be great if CRegistry can be set into ActionsAndVariablesWindow. Thanks.

eandropov avatar Sep 19 '17 12:09 eandropov

Hi, @eandropov.

The LunarConsolePlugin.LunarConsole.Show() and LunarConsolePlugin.LunarConsole.Hide() calls would do nothing in the editor mode: no events are generated. Why do you need to subscribe to these events in the first place? I'm also not sure about this one:

if CRegistry can be set into ActionsAndVariablesWindow

Can you clarify?

Thanks,

-Alex

weeeBox avatar Sep 19 '17 22:09 weeeBox

I have:

  • some internal value in a model without any change notification subscribes
  • CVar in some debug class
  • one way link from debug class to a model I want to sync my value with this CVar somehow, for example on console open.

About CRegistry: I use my own log system instead of Debug.Log with Lunar as log view for mobile devices, so lunar singleton prefab does not fit. But i need to use ActionsAndVariablesWindow. So, i put my cregistry into the window in ShowWindow(CRegistry registry) method.

eandropov avatar Sep 27 '17 11:09 eandropov