private static string GetAssetInfos(bool isFromDataGrid = false) { StringBuilder sb = new StringBuilder(); string fullPath = isFromDataGrid ? FWindow.FCurrentAsset : TreeViewUtility.GetFullPath(FWindow.TVItem) + "/" + FWindow.FCurrentAsset; PakReader.PakReader reader = AssetsUtility.GetPakReader(fullPath); if (reader != null) { List <FPakEntry> entriesList = AssetsUtility.GetPakEntries(fullPath); foreach (FPakEntry entry in entriesList) { sb.Append( "\n- PAK File:\t" + Path.GetFileName(reader.Name) + "\n- Path:\t\t" + entry.Name + "\n- Position:\t" + entry.Pos + "\n- Size:\t\t" + AssetsUtility.GetReadableSize(entry.UncompressedSize) + "\n- Encrypted:\t" + entry.Encrypted + "\n" ); } } if (isFromDataGrid) { string selectedName = fullPath.Substring(fullPath.LastIndexOf("/") + 1); if (selectedName.EndsWith(".uasset")) { selectedName = selectedName.Substring(0, selectedName.LastIndexOf('.')); } FWindow.FCurrentAsset = selectedName; } return(sb.ToString()); }