/*WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW*\ ( ( ) )
|/ \| ) ) _((_
|| (c) Wanzyee Studio < wanzyeestudio.blogspot.com > || ( ( |_ _ |=n
|\ /| _____)) | ! ] U
\.ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ./ (_(__(S) |___*/
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Object = UnityEngine.Object;
namespace WanzyeeStudio.Editrix{
///
/// Include some convenient methods for editor or asset operation.
///
public static class EditrixUtility{
///
/// Get all main assets in the project folder.
///
/// The all assets.
/// If set to true show progress bar while scanning.
/*
* The filter includes "ScriptableObject" 'coz of the bug in Unity 5.2.2.
*/
public static Object[] GetAllAssets(bool progressBar = false){
var _g = AssetDatabase.FindAssets("t:Object t:ScriptableObject");
var _p = _g.Select(_v => AssetDatabase.GUIDToAssetPath(_v)).OrderBy(_v => _v).ToArray();
var _a = new List