Example #1
0
        ///-----------------------------------------------------------------
        public override bool Match(string fileName, string extension, string content)
        {
            if (!base.Match(fileName, extension, content))
            {
                return(false);
            }

#if UNITY_EDITOR
            if (nameEndsWith != String.Empty && !fileName.EndsWith(nameEndsWith))
            {
                return(false);
            }

            if (templateFile != String.Empty)
            {
                return(TemplateRegistry.MatchTemplate(templateFile, extension, content));
            }
            return(true);
#else //!UNITY_EDITOR
            return(false);
#endif //UNITY_EDITOR
        }