Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: rchavarria on April 19, 2013, 04:16:17 PM

Title: UIInput eventReceiver goes null
Post by: rchavarria on April 19, 2013, 04:16:17 PM
I'm hitting a problem that is driving me crazy.

I have a chat system, and I use UIInput to capture text and then send it.

Crazily enough, after the 6th message is sent, the Event Receiver on the UIInput gets set to null, and I can't find a reason why this is happening.

Is NGUI doing any type of cleanup or destroying something that would cause this to happen?

Thanks,
- Ricardo
Title: Re: UIInput eventReceiver goes null
Post by: rchavarria on April 19, 2013, 04:25:53 PM
Ok, some further info tells me that UIInput's Init is being called on the 6th time I enter text on the input field. Is there a reason why this would happen?
Title: Re: UIInput eventReceiver goes null
Post by: ArenMook on April 19, 2013, 11:23:29 PM
No reason this would happen unless you're calling Init yourself via a Broadcast or SendMessage. Init is called only once.