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 - ealtorfer

Pages: [1]
1
Hi there,

I'm trying to work through a weird problem I'm seeing after upgrading to NGUI 3.0.x - I am programmatically showing/hiding/activating a text field on my UI. If I do so after interacting with another UI object, that UI object will receive a drag event. It's happening in UICamera:line 1368...

I'm assuming that this is occurring because I'm not activating the text field properly. Could someone help me understand where I might be going wrong?

2
NGUI 3 Support / Activate a UIInput programmatically?
« on: May 25, 2013, 10:17:24 PM »
I think there must be something I fundamentally don't understand about what's going on under the hood with NGUI, but is there a way to manually activate a UIInput field? Rather than having it activate on click, I'd like to activate it when the user presses KeyCode.Return.

I've written code to show and hide the field, but no matter what I've tried, I can't seem to focus/activate the field so that the | character appears and the user can type. I've tried UICamera.selectedObject, but that doesn't seem to work.

Thoughts?

Pages: [1]