Unity-Editor扩展显示文件夹大小修复版 FileCapacity.cs
实战中是这样的,大项目, 容易定位美术大资产
(原版的代码有问题,每次点运行都会卡顿,大项目20S)
//但其实获整个项目内容,1G都没有,有够省的(10年前的中型项目,一直有出DLC)
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using UnityEditor;
using UnityEngine;
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 prof