Unity UI изменить спрайт
// TO change the sprite of an UI image, se below
GameObject.GetComponent<Image>().sprite = sprite;
SkelliBoi
// TO change the sprite of an UI image, se below
GameObject.GetComponent<Image>().sprite = sprite;