此编辑器扩展工具脚本主要是显示资源目录下所有文件所占存储空间的大小,实际意义不大,的那是在实际开发过程中我们可以通过对各个模块文件大小的了解更好的分配我们的资源
快捷键 Alt+K可以打开或者隐藏
public class FileCapacity{private const string REMOVE_STR = "Assets";private const string FILESIZE = "FileSize";private static readonly int mRemoveCount = REMOVE_STR.Length;private static readonly Color professionalColor = new Color(56f / 255, 56f / 255, 56f / 255, 1);private static readonly Color personaloColor = new Color(194f / 255, 194f / 255, 194f / 255, 1);private static Dictionary<string, long> DirSizeDictionary = new Dictionary<string, long>();p