Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mayuki
Created August 6, 2015 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayuki/f3ee1d1521cb0595b450 to your computer and use it in GitHub Desktop.
Save mayuki/f3ee1d1521cb0595b450 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using UnityEditor;
namespace Unity.Assets.Editor
{
public class AnytimeHoldOn
{
[MenuItem("Help/Hold on")]
public static void HoldOn()
{
var allPaths = AssetDatabase.GetAllAssetPaths();
for (var i = 0; i < allPaths.Length; i++)
{
EditorUtility.DisplayProgressBar("Hold on", allPaths[i], i / (float)allPaths.Length);
Thread.Sleep(5);
}
EditorUtility.ClearProgressBar();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment