I’m working with an Event System trigger on the 2d app. I was finally able to get the triggers to work onEnter, onExit, and onClick. With the onClick, I wanted to bring up a dialog box to confirm the selection( in this case to delete the item selected.) For whatever reason, the dialog function is not called.
public void GoEnter()
{
Debug.Log("you entered");
IDText = MemberID.GetComponent<Text> ();
IDText.color = Color.red;
NameText=MemberName.GetComponent<Text>();
NameText.color=Color.red;
}
public void GoExit()
{
Debug.Log("you exited");
IDText.color = Color.white;
NameText.color=Color.white;
}
public void GoClick()
{
IDText = MemberID.GetComponent<Text> ();
IDText.color = Color.green;
NameText=MemberName.GetComponent<Text>();
NameText.color=Color.green;
Debug.Log("you clicked");
DeleteWindow();
}