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