Hi Everyone,
I'm having a issue when trying to add a listener through C#. I do have the following,
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystems;
However, when I do something like,
button.onClick.AddListener(action);
I get a error saying that there is no definition for onClick but I do have many other functions from 4.6 there. I have even downloaded a tutorial/example of someone else's 4.6 but I still get the same errors. I'm pulling my hair out here as I...
Add Listener Problem
I'm having a issue when trying to add a listener through C#. I do have the following,
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystems;
However, when I do something like,
button.onClick.AddListener(action);
I get a error saying that there is no definition for onClick but I do have many other functions from 4.6 there. I have even downloaded a tutorial/example of someone else's 4.6 but I still get the same errors. I'm pulling my hair out here as I...
Add Listener Problem