diff --git a/lib/UnityEngine.UI.dll b/lib/UnityEngine.UI.dll index aeee3d8..74933d5 100644 Binary files a/lib/UnityEngine.UI.dll and b/lib/UnityEngine.UI.dll differ diff --git a/lib/UnityEngine.dll b/lib/UnityEngine.dll index ce772f8..29d73f6 100644 Binary files a/lib/UnityEngine.dll and b/lib/UnityEngine.dll differ diff --git a/src/Core/Config/ExplorerConfig.cs b/src/Core/Config/ExplorerConfig.cs index 386cf87..bf47096 100644 --- a/src/Core/Config/ExplorerConfig.cs +++ b/src/Core/Config/ExplorerConfig.cs @@ -5,6 +5,8 @@ using IniParser; using IniParser.Parser; using UnityExplorer.UI; using System.Globalization; +using UnityExplorer.Core.Inspectors; +using UnityExplorer.UI.Main; namespace UnityExplorer.Core.Config { @@ -17,21 +19,17 @@ namespace UnityExplorer.Core.Config internal static CultureInfo _enCulture = new CultureInfo("en-US"); - static ExplorerConfig() - { - _parser.Configuration.CommentString = "#"; - - PanelDragger.OnFinishResize += PanelDragger_OnFinishResize; - } - // Actual configs - public KeyCode Main_Menu_Toggle = KeyCode.F7; - public bool Force_Unlock_Mouse = true; - public int Default_Page_Limit = 25; - public string Default_Output_Path = Path.Combine(ExplorerCore.EXPLORER_FOLDER, "Output"); - public bool Log_Unity_Debug = false; - public bool Hide_On_Startup = false; - public string Window_Anchors = DEFAULT_WINDOW_ANCHORS; + public KeyCode Main_Menu_Toggle = KeyCode.F7; + public bool Force_Unlock_Mouse = true; + public int Default_Page_Limit = 25; + public string Default_Output_Path = Path.Combine(ExplorerCore.EXPLORER_FOLDER, "Output"); + public bool Log_Unity_Debug = false; + public bool Hide_On_Startup = false; + public string Window_Anchors = DEFAULT_WINDOW_ANCHORS; + public int Active_Tab = 0; + public bool DebugConsole_Hidden = false; + public bool SceneExplorer_Hidden = false; private const string DEFAULT_WINDOW_ANCHORS = "0.25,0.10,0.78,0.95"; @@ -45,6 +43,12 @@ namespace UnityExplorer.Core.Config public static void OnLoad() { Instance = new ExplorerConfig(); + _parser.Configuration.CommentString = "#"; + + PanelDragger.OnFinishResize += PanelDragger_OnFinishResize; + SceneExplorer.OnToggleShow += SceneExplorer_OnToggleShow; + DebugConsole.OnToggleShow += DebugConsole_OnToggleShow; + MainMenu.OnActiveTabChanged += MainMenu_OnActiveTabChanged; if (LoadSettings()) return; @@ -86,6 +90,15 @@ namespace UnityExplorer.Core.Config case nameof(Window_Anchors): Instance.Window_Anchors = config.Value; break; + case nameof(Active_Tab): + Instance.Active_Tab = int.Parse(config.Value); + break; + case nameof(DebugConsole_Hidden): + Instance.DebugConsole_Hidden = bool.Parse(config.Value); + break; + case nameof(SceneExplorer_Hidden): + Instance.SceneExplorer_Hidden = bool.Parse(config.Value); + break; } } @@ -99,13 +112,16 @@ namespace UnityExplorer.Core.Config data.Sections.AddSection("Config"); var sec = data.Sections["Config"]; - sec.AddKey(nameof(Main_Menu_Toggle), Instance.Main_Menu_Toggle.ToString()); - sec.AddKey(nameof(Force_Unlock_Mouse), Instance.Force_Unlock_Mouse.ToString()); - sec.AddKey(nameof(Default_Page_Limit), Instance.Default_Page_Limit.ToString()); - sec.AddKey(nameof(Log_Unity_Debug), Instance.Log_Unity_Debug.ToString()); - sec.AddKey(nameof(Default_Output_Path), Instance.Default_Output_Path); - sec.AddKey(nameof(Hide_On_Startup), Instance.Hide_On_Startup.ToString()); - sec.AddKey(nameof(Window_Anchors), GetWindowAnchorsString()); + sec.AddKey(nameof(Main_Menu_Toggle), Instance.Main_Menu_Toggle.ToString()); + sec.AddKey(nameof(Force_Unlock_Mouse), Instance.Force_Unlock_Mouse.ToString()); + sec.AddKey(nameof(Default_Page_Limit), Instance.Default_Page_Limit.ToString()); + sec.AddKey(nameof(Log_Unity_Debug), Instance.Log_Unity_Debug.ToString()); + sec.AddKey(nameof(Default_Output_Path), Instance.Default_Output_Path); + sec.AddKey(nameof(Hide_On_Startup), Instance.Hide_On_Startup.ToString()); + sec.AddKey(nameof(Window_Anchors), GetWindowAnchorsString()); + sec.AddKey(nameof(Active_Tab), Instance.Active_Tab.ToString()); + sec.AddKey(nameof(DebugConsole_Hidden), Instance.DebugConsole_Hidden.ToString()); + sec.AddKey(nameof(SceneExplorer_Hidden), Instance.SceneExplorer_Hidden.ToString()); if (!Directory.Exists(ExplorerCore.Loader.ConfigFolder)) Directory.CreateDirectory(ExplorerCore.Loader.ConfigFolder); @@ -113,6 +129,24 @@ namespace UnityExplorer.Core.Config File.WriteAllText(INI_PATH, data.ToString()); } + private static void SceneExplorer_OnToggleShow() + { + Instance.SceneExplorer_Hidden = SceneExplorer.UI.Hiding; + SaveSettings(); + } + + private static void DebugConsole_OnToggleShow() + { + Instance.DebugConsole_Hidden = DebugConsole.Hiding; + SaveSettings(); + } + + private static void MainMenu_OnActiveTabChanged(int page) + { + Instance.Active_Tab = page; + SaveSettings(); + } + // ============ Window Anchors specific stuff ============== // private static void PanelDragger_OnFinishResize() diff --git a/src/Core/Inspectors/Reflection/CacheObject/CacheMember.cs b/src/Core/Inspectors/Reflection/CacheObject/CacheMember.cs index 5796069..3039648 100644 --- a/src/Core/Inspectors/Reflection/CacheObject/CacheMember.cs +++ b/src/Core/Inspectors/Reflection/CacheObject/CacheMember.cs @@ -224,8 +224,8 @@ namespace UnityExplorer.Core.Inspectors.Reflection var topGroup = topGroupObj.GetComponent(); topGroup.childForceExpandHeight = false; topGroup.childForceExpandWidth = false; - topGroup.childControlHeight = true; - topGroup.childControlWidth = true; + topGroup.SetChildControlHeight(true); + topGroup.SetChildControlWidth(true); topGroup.spacing = 10; topGroup.padding.left = 3; topGroup.padding.right = 3; @@ -243,8 +243,8 @@ namespace UnityExplorer.Core.Inspectors.Reflection var leftGroup = m_leftGroup.GetComponent(); leftGroup.childForceExpandHeight = true; leftGroup.childForceExpandWidth = false; - leftGroup.childControlHeight = true; - leftGroup.childControlWidth = true; + leftGroup.SetChildControlHeight(true); + leftGroup.SetChildControlWidth(true); leftGroup.spacing = 4; // member label @@ -278,8 +278,8 @@ namespace UnityExplorer.Core.Inspectors.Reflection var rightGroup = m_rightGroup.GetComponent(); rightGroup.childForceExpandHeight = true; rightGroup.childForceExpandWidth = false; - rightGroup.childControlHeight = true; - rightGroup.childControlWidth = true; + rightGroup.SetChildControlHeight(true); + rightGroup.SetChildControlWidth(true); rightGroup.spacing = 2; rightGroup.padding.top = 4; rightGroup.padding.bottom = 2; diff --git a/src/Core/Inspectors/Reflection/CacheObject/CacheObjectBase.cs b/src/Core/Inspectors/Reflection/CacheObject/CacheObjectBase.cs index e498361..103eb7d 100644 --- a/src/Core/Inspectors/Reflection/CacheObject/CacheObjectBase.cs +++ b/src/Core/Inspectors/Reflection/CacheObject/CacheObjectBase.cs @@ -92,9 +92,9 @@ namespace UnityExplorer.Core.Inspectors.Reflection m_mainRect.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 25); var mainGroup = m_mainContent.GetComponent(); mainGroup.childForceExpandWidth = true; - mainGroup.childControlWidth = true; + mainGroup.SetChildControlWidth(true); mainGroup.childForceExpandHeight = true; - mainGroup.childControlHeight = true; + mainGroup.SetChildControlHeight(true); var mainLayout = m_mainContent.AddComponent(); mainLayout.minHeight = 25; mainLayout.flexibleHeight = 9999; diff --git a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveDictionary.cs b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveDictionary.cs index 918c816..85e7caf 100644 --- a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveDictionary.cs +++ b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveDictionary.cs @@ -296,7 +296,7 @@ namespace UnityExplorer.Core.Inspectors.Reflection var scrollGroup = m_listContent.GetComponent(); scrollGroup.childForceExpandHeight = true; - scrollGroup.childControlHeight = true; + scrollGroup.SetChildControlHeight(true); scrollGroup.spacing = 2; scrollGroup.padding.top = 5; scrollGroup.padding.left = 5; diff --git a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveEnumerable.cs b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveEnumerable.cs index 0f770d8..da30797 100644 --- a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveEnumerable.cs +++ b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveEnumerable.cs @@ -270,7 +270,7 @@ namespace UnityExplorer.Core.Inspectors.Reflection var scrollGroup = m_listContent.GetComponent(); scrollGroup.childForceExpandHeight = true; - scrollGroup.childControlHeight = true; + scrollGroup.SetChildControlHeight(true); scrollGroup.spacing = 2; scrollGroup.padding.top = 5; scrollGroup.padding.left = 5; diff --git a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveFlags.cs b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveFlags.cs index 5f3a479..d4123e4 100644 --- a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveFlags.cs +++ b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveFlags.cs @@ -98,8 +98,8 @@ namespace UnityExplorer.Core.Inspectors.Reflection var group = groupObj.GetComponent(); group.childForceExpandHeight = true; group.childForceExpandWidth = false; - group.childControlHeight = true; - group.childControlWidth = true; + group.SetChildControlHeight(true); + group.SetChildControlWidth(true); group.padding.top = 3; group.padding.left = 3; group.padding.right = 3; diff --git a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveString.cs b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveString.cs index 9068448..201a601 100644 --- a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveString.cs +++ b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveString.cs @@ -155,9 +155,9 @@ namespace UnityExplorer.Core.Inspectors.Reflection hiddenLayout.flexibleWidth = 9000; var hiddenGroup = m_hiddenObj.AddComponent(); hiddenGroup.childForceExpandWidth = true; - hiddenGroup.childControlWidth = true; + hiddenGroup.SetChildControlWidth(true); hiddenGroup.childForceExpandHeight = true; - hiddenGroup.childControlHeight = true; + hiddenGroup.SetChildControlHeight(true); var inputObj = UIFactory.CreateInputField(m_hiddenObj, 14, 3); var inputLayout = inputObj.AddComponent(); diff --git a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs index 86c93a1..f0a5c5a 100644 --- a/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs +++ b/src/Core/Inspectors/Reflection/InteractiveValue/InteractiveValue.cs @@ -308,9 +308,9 @@ namespace UnityExplorer.Core.Inspectors.Reflection mainRect.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 25); var mainGroup = m_valueContent.GetComponent(); mainGroup.childForceExpandWidth = false; - mainGroup.childControlWidth = true; + mainGroup.SetChildControlWidth(true); mainGroup.childForceExpandHeight = false; - mainGroup.childControlHeight = true; + mainGroup.SetChildControlHeight(true); mainGroup.spacing = 4; mainGroup.childAlignment = TextAnchor.UpperLeft; var mainLayout = m_valueContent.AddComponent(); diff --git a/src/Core/Runtime/Il2Cpp/Il2CppProvider.cs b/src/Core/Runtime/Il2Cpp/Il2CppProvider.cs index 6ff5101..7d87460 100644 --- a/src/Core/Runtime/Il2Cpp/Il2CppProvider.cs +++ b/src/Core/Runtime/Il2Cpp/Il2CppProvider.cs @@ -11,6 +11,7 @@ using UnityEngine; using UnityEngine.Events; using UnityEngine.SceneManagement; using System.Collections; +using UnityEngine.UI; namespace UnityExplorer.Core.Runtime.Il2Cpp { @@ -107,7 +108,7 @@ namespace UnityExplorer.Core.Runtime.Il2Cpp } } -public static class UnityEventExtensions +public static class Il2CppExtensions { public static void AddListener(this UnityEvent action, Action listener) { @@ -118,6 +119,9 @@ public static class UnityEventExtensions { action.AddListener(listener); } + + public static void SetChildControlHeight(this HorizontalOrVerticalLayoutGroup group, bool value) => group.childControlHeight = value; + public static void SetChildControlWidth(this HorizontalOrVerticalLayoutGroup group, bool value) => group.childControlWidth = value; } #endif \ No newline at end of file diff --git a/src/Core/Runtime/Mono/MonoProvider.cs b/src/Core/Runtime/Mono/MonoProvider.cs index c4c61d5..d52e5d1 100644 --- a/src/Core/Runtime/Mono/MonoProvider.cs +++ b/src/Core/Runtime/Mono/MonoProvider.cs @@ -7,6 +7,7 @@ using System.Reflection; using System.Text; using UnityEngine; using UnityEngine.SceneManagement; +using UnityEngine.UI; using UnityExplorer.Core; using UnityExplorer.Core.CSharp; @@ -63,6 +64,26 @@ public static class MonoExtensions { sb.Remove(0, sb.Length); } + + private static PropertyInfo pi_childControlHeight; + + public static void SetChildControlHeight(this HorizontalOrVerticalLayoutGroup group, bool value) + { + if (pi_childControlHeight == null) + pi_childControlHeight = group.GetType().GetProperty("childControlHeight"); + + pi_childControlHeight?.SetValue(group, value, null); + } + + private static PropertyInfo pi_childControlWidth; + + public static void SetChildControlWidth(this HorizontalOrVerticalLayoutGroup group, bool value) + { + if (pi_childControlWidth == null) + pi_childControlWidth = group.GetType().GetProperty("childControlWidth"); + + pi_childControlWidth?.SetValue(group, value, null); + } } #endif \ No newline at end of file diff --git a/src/Core/SceneExplorer.cs b/src/Core/SceneExplorer.cs index 172a33f..c292f09 100644 --- a/src/Core/SceneExplorer.cs +++ b/src/Core/SceneExplorer.cs @@ -9,6 +9,7 @@ using UnityEngine.SceneManagement; using UnityEngine.UI; using UnityExplorer.Core.Runtime; using UnityExplorer.UI.Main.Home; +using UnityExplorer.Core.Config; namespace UnityExplorer.Core.Inspectors { @@ -58,14 +59,15 @@ namespace UnityExplorer.Core.Inspectors public void Init() { RefreshSceneSelector(); + + if (ExplorerConfig.Instance.SceneExplorer_Hidden) + UI.ToggleShow(); } public void Update() { - if (SceneExplorerUI.Hiding || Time.realtimeSinceStartup - m_timeOfLastSceneUpdate < UPDATE_INTERVAL) - { + if (UI.Hiding || Time.realtimeSinceStartup - m_timeOfLastSceneUpdate < UPDATE_INTERVAL) return; - } RefreshSceneSelector(); diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index 8682cd4..e5dcae2 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -17,7 +17,7 @@ namespace UnityExplorer public class ExplorerCore { public const string NAME = "UnityExplorer"; - public const string VERSION = "3.2.9"; + public const string VERSION = "3.2.10"; public const string AUTHOR = "Sinai"; public const string GUID = "com.sinai.unityexplorer"; diff --git a/src/Resources/explorerui.legacy.bundle b/src/Resources/explorerui.legacy.bundle index 28c04c7..ae09122 100644 Binary files a/src/Resources/explorerui.legacy.bundle and b/src/Resources/explorerui.legacy.bundle differ diff --git a/src/Resources/explorerui.legacy.bundle.bak.5.3.8 b/src/Resources/explorerui.legacy.bundle.bak.5.3.8 new file mode 100644 index 0000000..28c04c7 Binary files /dev/null and b/src/Resources/explorerui.legacy.bundle.bak.5.3.8 differ diff --git a/src/UI/Main/CSConsole/AutoCompleter.cs b/src/UI/Main/CSConsole/AutoCompleter.cs index 31a74ab..aa8184e 100644 --- a/src/UI/Main/CSConsole/AutoCompleter.cs +++ b/src/UI/Main/CSConsole/AutoCompleter.cs @@ -269,8 +269,8 @@ namespace UnityExplorer.UI.Main.CSConsole mainRect.offsetMax = Vector2.zero; var mainGroup = content.GetComponent(); - mainGroup.childControlHeight = false; - mainGroup.childControlWidth = true; + mainGroup.SetChildControlHeight(false); + mainGroup.SetChildControlWidth(true); mainGroup.childForceExpandHeight = false; mainGroup.childForceExpandWidth = true; diff --git a/src/UI/Main/CSConsole/CSharpConsole.cs b/src/UI/Main/CSConsole/CSharpConsole.cs index f75e937..5bd27c8 100644 --- a/src/UI/Main/CSConsole/CSharpConsole.cs +++ b/src/UI/Main/CSConsole/CSharpConsole.cs @@ -463,8 +463,8 @@ The following helper methods are available: mainLayout.flexibleHeight = 9000; var mainGroup = Content.AddComponent(); - mainGroup.childControlHeight = true; - mainGroup.childControlWidth = true; + mainGroup.SetChildControlHeight(true); + mainGroup.SetChildControlWidth(true); mainGroup.childForceExpandHeight = true; mainGroup.childForceExpandWidth = true; @@ -485,8 +485,8 @@ The following helper methods are available: topBarGroup.spacing = 10; topBarGroup.childForceExpandHeight = true; topBarGroup.childForceExpandWidth = true; - topBarGroup.childControlWidth = true; - topBarGroup.childControlHeight = true; + topBarGroup.SetChildControlWidth(true); + topBarGroup.SetChildControlHeight(true); topBarGroup.childAlignment = TextAnchor.LowerCenter; var topBarLabel = UIFactory.CreateLabel(topBarObj, TextAnchor.MiddleLeft); diff --git a/src/UI/Main/DebugConsole.cs b/src/UI/Main/DebugConsole.cs index df1a483..d586f97 100644 --- a/src/UI/Main/DebugConsole.cs +++ b/src/UI/Main/DebugConsole.cs @@ -14,7 +14,7 @@ namespace UnityExplorer.UI.Main { public static DebugConsole Instance { get; private set; } - public static bool LogUnity { get; set; } = ExplorerConfig.Instance.Log_Unity_Debug; + public static bool LogUnity { get; set; } //public static bool SaveToDisk { get; set; } = ModConfig.Instance.Save_Logs_To_Disk; internal static StreamWriter s_streamWriter; @@ -32,9 +32,13 @@ namespace UnityExplorer.UI.Main public DebugConsole(GameObject parent) { Instance = this; + LogUnity = ExplorerConfig.Instance.Log_Unity_Debug; ConstructUI(parent); + if (ExplorerConfig.Instance.DebugConsole_Hidden) + ToggleShow(); + // append messages that logged before we were set up string preAppend = ""; for (int i = s_preInitMessages.Count - 1; i >= 0; i--) @@ -48,9 +52,6 @@ namespace UnityExplorer.UI.Main // set up IO - //if (!SaveToDisk) - // return; - var path = ExplorerCore.EXPLORER_FOLDER + @"\Logs"; if (!Directory.Exists(path)) @@ -80,6 +81,34 @@ namespace UnityExplorer.UI.Main s_streamWriter.WriteLine(msg); } + public static bool Hiding; + + private GameObject m_logAreaObj; + private Text m_hideBtnText; + private LayoutElement m_mainLayout; + + public static Action OnToggleShow; + + public void ToggleShow() + { + if (m_logAreaObj.activeSelf) + { + Hiding = true; + m_logAreaObj.SetActive(false); + m_hideBtnText.text = "Show"; + m_mainLayout.minHeight = 30; + } + else + { + Hiding = false; + m_logAreaObj.SetActive(true); + m_hideBtnText.text = "Hide"; + m_mainLayout.minHeight = 190; + } + + OnToggleShow?.Invoke(); + } + public static string RemoveInvalidFilenameChars(string s) { var invalid = Path.GetInvalidFileNameChars(); @@ -129,8 +158,8 @@ namespace UnityExplorer.UI.Main var mainObj = UIFactory.CreateVerticalGroup(parent, new Color(0.1f, 0.1f, 0.1f, 1.0f)); var mainGroup = mainObj.GetComponent(); - mainGroup.childControlHeight = true; - mainGroup.childControlWidth = true; + mainGroup.SetChildControlHeight(true); + mainGroup.SetChildControlWidth(true); mainGroup.childForceExpandHeight = true; mainGroup.childForceExpandWidth = true; @@ -140,23 +169,23 @@ namespace UnityExplorer.UI.Main var mask = mainObj.AddComponent(); mask.showMaskGraphic = true; - var mainLayout = mainObj.AddComponent(); - mainLayout.minHeight = 190; - mainLayout.flexibleHeight = 0; + m_mainLayout = mainObj.AddComponent(); + m_mainLayout.minHeight = 190; + m_mainLayout.flexibleHeight = 0; #region LOG AREA - var logAreaObj = UIFactory.CreateHorizontalGroup(mainObj); - var logAreaGroup = logAreaObj.GetComponent(); - logAreaGroup.childControlHeight = true; - logAreaGroup.childControlWidth = true; + m_logAreaObj = UIFactory.CreateHorizontalGroup(mainObj); + var logAreaGroup = m_logAreaObj.GetComponent(); + logAreaGroup.SetChildControlHeight(true); + logAreaGroup.SetChildControlWidth(true); logAreaGroup.childForceExpandHeight = true; logAreaGroup.childForceExpandWidth = true; - var logAreaLayout = logAreaObj.AddComponent(); + var logAreaLayout = m_logAreaObj.AddComponent(); logAreaLayout.preferredHeight = 190; logAreaLayout.flexibleHeight = 0; - var inputScrollerObj = UIFactory.CreateSrollInputField(logAreaObj, out InputFieldScroller inputScroll, 14, new Color(0.05f, 0.05f, 0.05f)); + var inputScrollerObj = UIFactory.CreateSrollInputField(m_logAreaObj, out InputFieldScroller inputScroll, 14, new Color(0.05f, 0.05f, 0.05f)); inputScroll.inputField.textComponent.font = UIManager.ConsoleFont; inputScroll.inputField.readOnly = true; @@ -179,8 +208,8 @@ namespace UnityExplorer.UI.Main bottomGroup.spacing = 10; bottomGroup.childForceExpandHeight = true; bottomGroup.childForceExpandWidth = false; - bottomGroup.childControlWidth = true; - bottomGroup.childControlHeight = true; + bottomGroup.SetChildControlWidth(true); + bottomGroup.SetChildControlHeight(true); bottomGroup.childAlignment = TextAnchor.MiddleLeft; // Debug Console label @@ -198,26 +227,15 @@ namespace UnityExplorer.UI.Main var hideButtonObj = UIFactory.CreateButton(bottomBarObj); - var hideBtnText = hideButtonObj.GetComponentInChildren(); - hideBtnText.text = "Hide"; + m_hideBtnText = hideButtonObj.GetComponentInChildren(); + m_hideBtnText.text = "Hide"; var hideButton = hideButtonObj.GetComponent