- Home /
Hiding UI image
Hi all,
silly question here i think...
How do i hide an image on the UI?
ive tried the below though i couldn't get it working, ive also tried other variations though its still a no-goer
any ideas?
public Image heart3;
void Start () {
heart3.enabled=false;
}
cheers
Comment
Is there any Error message in Unity? Did you remember to drag the image onto the script in the editor?
Answer by Jacky-Marley · Dec 01, 2016 at 04:01 PM
public GameObject heart3;
void Start()
{
heart3.setActive(false);
}
after drag the Image into the heart3 slot;