internal static TexImporterSetting.Settings GetSettings(
            TexImporterSetting importImporterSetting,
            string assetPath
            )
        {
            var fileName = Path.GetFileName(assetPath);

            for (var i = 0; i < importImporterSetting.SpecialItems.Count; i++)
            {
                var specialItem = importImporterSetting.SpecialItems[i];
                var matchStr    = string.Empty;
                switch (specialItem.FilterContentType)
                {
                case ConditionContent.FileName:
                    matchStr = fileName;
                    break;

                case ConditionContent.Path:
                    matchStr = assetPath;
                    break;

                case ConditionContent.ParentFolderName:
                    matchStr = Path.GetFileName(Path.GetDirectoryName(assetPath));
                    break;
                }

                if (CheckSpecialItemMatch(specialItem, matchStr))
                {
                    return(specialItem.Setting);
                }
            }

            if (importImporterSetting.ApplyDefaultSettings)
            {
                return(importImporterSetting.ImporterSettings);
            }

            return(null);
        }
 private void OnEnable() => impSettings = (TexImporterSetting)target;