Created
August 6, 2015 10:53
-
-
Save mayuki/f3ee1d1521cb0595b450 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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