Hiding raw image destroys it - how to fix it?

73 views Asked by At

I wanted to use pop-up type of notification in my project. It was supposed to be hidden on the start, but show up when button is clicked.

So at first I tried .SetActive(bool) method, then .enabled = bool. Both times it turned out to delete/destroy my raw image at the very beginning of the project run. Below I provide you a snippet of my code:

void Start()
{
    Notif.enabled = false;
}
private void Outcome()
{
    Notif.enabled = true;
}
0

There are 0 answers