Example #1
0
 protected override void _RefreshList(List <string> list)
 {
     m_aniInfo = new List <AnimationInfo>();
     for (int i = 0; i < list.Count; ++i)
     {
         string path = EditorPath.FormatAssetPath(list[i]);
         string name = System.IO.Path.GetFileName(path);
         EditorUtility.DisplayProgressBar("获取动作数据", name, (i * 1.0f) / list.Count);
         if (!EditorPath.IsAnimation(path))
         {
             continue;
         }
         AnimationInfo aniInfo = AnimationInfo.CreateAnimationInfo(path);
         if (aniInfo != null)
         {
             m_aniInfo.Add(aniInfo);
         }
     }
     EditorUtility.ClearProgressBar();
     RefreshDataWithSelect();
 }
Example #2
0
 public override bool IsMatch(string path)
 {
     return(EditorPath.IsAnimation(path) && base.IsMatch(path));
 }