Exemplo n.º 1
0
 // 右侧信息展示
 private void ShowInfoForObj(AssetObject assetObject)
 {
     if (assetObject is MonoBehaviour)
     {
         DumpText.Text = scriptDumper.DumpScript(assetObject.reader);
     }
     else
     {
         DumpText.Text = assetObject.DumpObjInfo();
     }
     FileInfoText.Text = assetObject.DumpFileInfo();
 }
Exemplo n.º 2
0
        public static string GetScriptString(ObjectReader reader)
        {
            if (scriptDumper == null)
            {
                var openFolderDialog = new OpenFolderDialog();
                openFolderDialog.Title = "Select Assembly Folder";
                if (openFolderDialog.ShowDialog() == DialogResult.OK)
                {
                    scriptDumper = new ScriptDumper(openFolderDialog.Folder);
                }
                else
                {
                    scriptDumper = new ScriptDumper();
                }
            }

            return(scriptDumper.DumpScript(reader));
        }