AssetPostProcessors 수정
This commit is contained in:
parent
c4ed693da8
commit
7b1677f2f6
@ -12,20 +12,20 @@ private void OnPreprocessTexture()
|
|||||||
var importer = assetImporter as TextureImporter;
|
var importer = assetImporter as TextureImporter;
|
||||||
|
|
||||||
var upperPath = importer.assetPath.ToUpper();
|
var upperPath = importer.assetPath.ToUpper();
|
||||||
|
|
||||||
if (upperPath.Contains(PathConstants.RawUiPathUpper))
|
if (upperPath.Contains(PathConstants.RawSpritesPathUpper))
|
||||||
{
|
{
|
||||||
if (upperPath.Contains(PathConstants.RawOnlyAtlasPathUpper))
|
if (upperPath.Contains(PathConstants.RawOnlyAtlasPathUpper))
|
||||||
{
|
{
|
||||||
AssetPostprocessorSprite.OnPreprocessTextureOnlyAtlas(importer);
|
AssetPostprocessorSprite.OnPreprocessTextureOnlyAtlas(importer);
|
||||||
}
|
}
|
||||||
else if (upperPath.Contains(PathConstants.RawSpritesPathUpper))
|
else if (upperPath.Contains(PathConstants.RawUiPathUpper))
|
||||||
{
|
{
|
||||||
AssetPostprocessorSprite.OnPreprocessTexture(importer);
|
AssetPostprocessorSprite.OnPreprocessTextureForUi(importer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AssetPostprocessorSprite.OnPreprocessTextureForUi(importer);
|
AssetPostprocessorSprite.OnPreprocessTexture(importer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user