So I’m trying to create a simple panel at the start of the game. I have added a button which simply reads “Start!”. i just want to hide the panel when the button is pushed. I have not a correct understanding for all of these functions about “onClick, pushDown” etc. What i have is Canvas>Panel>StartButton>text.
I don’t know how to continue my script or to which object I have to attach it to.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystem;
public void(){
if(Canvas.StartButton.onClick())
}
}