【白片修复】尝试修复白片问题

dev_chengFeng
gaoxin 2021-04-23 10:38:23 +08:00
parent 692e912596
commit 05fbc4ba64
1 changed files with 10 additions and 0 deletions

View File

@ -679,7 +679,17 @@ function UIManager.DoLanguageCheck(spLoader, gameObject)
end
end
end
else
local imageArr=gameObject:GetComponentsInChildren(typeof(UnityEngine.UI.Image),true);
for i = 0, imageArr.Length-1 do
if imageArr[i].sprite then
local imgStr=imageArr[i].sprite.name
Log("资源名称:"..imgStr)
imageArr[i].sprite = spLoader:LoadSprite(imgStr)
end
end
end
end
--关闭所有面板