同一个atlas里通过spriteName设置图片UISprite sprite = gameObject.GetComponent(); sprite.spriteName = "XXX"; 查看原帖>>