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;
}