예제 #1
0
    private List <string> GetAllAtlasPrefabFilePath(string dir)
    {
        List <string> atlasPrefabPath = new List <string>();

        if (string.IsNullOrEmpty(dir))
        {
            return(atlasPrefabPath);
        }

        List <string> filePath = UniversalEditorUtility.GetAllFilePath(dir);

        foreach (var item in filePath)
        {
            if (YAMLAnalyser.IsAtlasPrefab(item))
            {
                atlasPrefabPath.Add(item);
            }
        }

        return(atlasPrefabPath);
    }
예제 #2
0
    private List <string> GetAllAssetFilePath()
    {
        List <string> filePathTbl = UniversalEditorUtility.GetAllFilePath(m_inputInfo.PrefebPath);

        filePathTbl.AddRange(UniversalEditorUtility.GetAllFilePath(m_inputInfo.ScenePath));

        List <string> prefabPathTbl = new List <string>();

        foreach (var item in filePathTbl)
        {
            if (
                item.EndsWith(".prefab") ||
                item.EndsWith(".unity")
                )
            {
                if (!prefabPathTbl.Contains(item))
                {
                    prefabPathTbl.Add(item);
                }
            }
        }

        return(prefabPathTbl);
    }