- Home /
Destroy UI Image
How would I go about destroying a UI Image? - I tried with just:
using UnityEngine.UI;
public Image image;
void Update()
{
Destroy(image);
}
But this did not work. It said that the Image was used for something visual or something...
Comment
$$anonymous$$aybe : 1) Destroy(image.gameObject) 2) image.sprite = null
Your answer
Follow this Question
Related Questions
UI Image source image not changing 2 Answers
Saving image in a variable purely through code? 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Question about an inventory system idea 2 Answers