判断是否包含这个目录,或者在这个目录内
private bool Filter(OutlineDirSetting exampleAsset, bool IsProcess)
{
foreach (var dirInfo in exampleAsset.DirInfos)
{
var path = AssetDatabase.GetAssetPath(dirInfo.Folder);
// Debug.Log(Path.GetDirectoryName(assetPath) + " " +path.Replace("/","\\"));
string a = Path.GetDirectoryName(assetPath);
string b = path.Replace("/", "\\");
if (a.Contains(b + "\\")||a == b)
{
Debug.Log("Smoothing Normal To UV3......: " + assetPath);
IsProcess = true;
break;
}
}
return IsProcess;
}