unity系统样式的进度条
直接看代码,简单
void CreatProgressBar(){
EditorApplication.update = ProgressBar;
}
static float maxValue;
static float presentValue;
public static void ProgressBar()
{
bool isCancel = EditorUtility.DisplayCancelableProgressBar("ProgressBar", "AAA", presentValue/ maxValue);
if (isCancel || presentValue >= maxValue)
{
EditorUtility.ClearProgressBar();
EditorApplication.update = null;
}