I have a problem to display the sliced sprite from atlas in the grid, the shader is using Unlit/Transparent Colored.
All sprites were not shown, as this:
When i changed the shader to Unlit/ Transparent Cutout, the sprites can be shown, as this:
What's the problem here? I can't use Unlit/ Transparent Cutout, it will make other layout messy. Can anyone help?
In my C# script, the sprite is set:
string sprite = sprites[type - 1];
GameObject instance = NGUITools.AddChild(grid, matchItemPrefab) as GameObject;
instance.GetComponent<UISprite>().spriteName = sprite;