Hi!
I'm working upgrading an old project to Unity 2017 and was made with Unity 4.6, this project uses NGUI the version 3.0.8f7 and I upgraded for the newest 3.11.4, but I'm getting a problem with the following code
atlas = AtlasManager.GetAtlasBySprite(ref spriteName, spriteType);
if(atlas != null) {
UISpriteData spriteData = atlas.GetSprite(spriteName);
if(spriteData != null)
{
sprite.atlas = atlas;
sprite.SetSprite(spriteData);
return true;
}
}
What I saw the solution should be replacing the line
sprite.SetSprite(spriteData) with sprite.spriteName = spriteName
I tried to find the old documentation or anything else in the forum and the documentation, but I couldn't.
Thanks