Example #1
0
        public static AssetNode GetNode(string filePath)
        {
            var extension = Path.GetExtension(filePath);

            if (Array.IndexOf(IgnoreExtensions, extension) >= 0)
            {
                return(null);
            }

            var importer = AssetImporter.GetAtPath(filePath);

            if (importer is TrueTypeFontImporter)
            {
                return(null);
            }
            var node = !filePath.StartsWith("assets", true, CultureInfo.InvariantCulture) ? null : AssetNode.GetOrCreate(filePath);

            if (importer)
            {
                AssetCustomProcesses.Process(importer);
            }

            return(node);
        }