Hello I have a question about ui buttons. If I want to turn the interatible boolean on the button to on or off throught a script how do I do so? Thanks
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public class ScriptExample : MonoBehaviour{
public Button ButtonExample;
void Start(){
ButtonExample.interactible = true;
//ButtonExample.interactible = false;
}
}