diff --git a/src/Config/ModConfig.cs b/src/Config/ModConfig.cs index 05ee6a0..d475844 100644 --- a/src/Config/ModConfig.cs +++ b/src/Config/ModConfig.cs @@ -22,7 +22,7 @@ namespace UnityExplorer.Config public KeyCode Main_Menu_Toggle = KeyCode.F7; public bool Force_Unlock_Mouse = true; public int Default_Page_Limit = 25; - public string Default_Output_Path = ExplorerCore.EXPLORER_FOLDER; + public string Default_Output_Path = ExplorerCore.EXPLORER_FOLDER + @"\Output"; public bool Log_Unity_Debug = false; public bool Save_Logs_To_Disk = true; diff --git a/src/ExplorerCore.cs b/src/ExplorerCore.cs index 123f90a..7f565e0 100644 --- a/src/ExplorerCore.cs +++ b/src/ExplorerCore.cs @@ -16,7 +16,7 @@ namespace UnityExplorer public class ExplorerCore { public const string NAME = "UnityExplorer"; - public const string VERSION = "3.0.8"; + public const string VERSION = "3.1.0"; public const string AUTHOR = "Sinai"; public const string GUID = "com.sinai.unityexplorer"; public const string EXPLORER_FOLDER = @"Mods\UnityExplorer"; diff --git a/src/Inspectors/Reflection/InstanceInspector.cs b/src/Inspectors/Reflection/InstanceInspector.cs index bf43e1b..d58e4cc 100644 --- a/src/Inspectors/Reflection/InstanceInspector.cs +++ b/src/Inspectors/Reflection/InstanceInspector.cs @@ -4,6 +4,8 @@ using UnityEngine; using UnityExplorer.Helpers; using UnityExplorer.UI; using UnityEngine.UI; +using UnityExplorer.Unstrip; +using System.IO; namespace UnityExplorer.Inspectors.Reflection { @@ -70,8 +72,8 @@ namespace UnityExplorer.Inspectors.Reflection // WIP - //if (m_targetType == typeof(Texture2D)) - // ConstructTextureHelper(); + if (m_targetType == typeof(Texture2D)) + ConstructTextureHelper(); } internal void ConstructCompHelper(GameObject rowObj) @@ -136,94 +138,169 @@ namespace UnityExplorer.Inspectors.Reflection //btn.onClick.AddListener(() => { InspectorManager.Instance.Inspect(comp.gameObject); }); } - //internal bool showingTextureHelper; - //internal bool constructedTextureViewer; + internal bool showingTextureHelper; + internal bool constructedTextureViewer; - //internal void ConstructTextureHelper() - //{ - // var rowObj = UIFactory.CreateHorizontalGroup(Content, new Color(0.1f, 0.1f, 0.1f)); - // var rowLayout = rowObj.AddComponent(); - // rowLayout.minHeight = 25; - // rowLayout.flexibleHeight = 0; - // var rowGroup = rowObj.GetComponent(); - // rowGroup.childForceExpandHeight = true; - // rowGroup.childForceExpandWidth = false; - // rowGroup.padding.top = 3; - // rowGroup.padding.left = 3; - // rowGroup.padding.bottom = 3; - // rowGroup.padding.right = 3; - // rowGroup.spacing = 5; + internal GameObject m_textureViewerObj; - // var showBtnObj = UIFactory.CreateButton(rowObj, new Color(0.2f, 0.2f, 0.2f)); - // var showBtnLayout = showBtnObj.AddComponent(); - // showBtnLayout.minWidth = 50; - // showBtnLayout.flexibleWidth = 0; - // var showText = showBtnObj.GetComponentInChildren(); - // showText.text = "Show"; - // var showBtn = showBtnObj.GetComponent