unity2d 修改sprite填充图片


UISprite sprite = gameObject.GetComponent<UISprite>();

sprite.spriteName = "XXX";


你可能感兴趣的:(unity2d 修改sprite填充图片)