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(); }
public override bool IsMatch(string path) { return(EditorPath.IsAnimation(path) && base.IsMatch(path)); }