unity toggle interactable script code example
Example: unity button interactable
using UnityEngine.UI;
public Button button;
button.interactable = true;
using UnityEngine.UI;
public Button button;
button.interactable = true;