Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - calebheale

Pages: [1]
1
Support / Re: Cant register event listeners
« on: July 16, 2014, 02:56:46 pm »
Thank you. That is exactly what I was missing. And yes, looking at the prefabs helped make a lot more sense of it.

2
Support / Cant register event listeners
« on: July 16, 2014, 12:03:47 am »
I have a tk2dUIUpDownButton script as a component on a game object that I would like to use as a button.
I have a second script to write my event handlers also as a component on the same game object
I am trying to access the uiItem to reference the events
In OnEnable for my custom script I am trying to access uiItem using the following:
tk2dUIItem ui = GetComponent<tk2dUIUpDownButton>().uiItem;

I get a null reference exception when trying to register my event handlers.

What am I doing wrong?

Pages: [1]