Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Add Listener Problem

$
0
0
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

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>