Exemplo n.º 1
0
        public static List <string> GetSelectAllFiles()
        {
            Object[]      mSelectObjs = FileUtilityEditor.GetFiltered();
            List <string> mPathList   = new List <string>();

            foreach (Object obj in mSelectObjs)
            {
                string path = AssetDatabase.GetAssetPath(obj);
                FileUtilityEditor.GetDeepAssetPaths(path, mPathList);
            }
            return(mPathList);
        }
Exemplo n.º 2
0
 public static void GetSelectAssetPaths(List <string> list)
 {
     Object[] mSelectObjs = FileUtilityEditor.GetFiltered();
     for (int i = 0; i < mSelectObjs.Length; i++)
     {
         string path     = AssetDatabase.GetAssetPath(mSelectObjs[i]);
         string metaPath = path + ".meta";
         list.Add(path);
         if (!metaPath.Contains("/CB/"))
         {
             if (File.Exists(metaPath))
             {
                 list.Add(metaPath);
             }
         }
         UnityEngine.Debug.Log(path);
     }
 }