I'm trying to use UIButtonKeys and NGUI, and having weird results still.
Looking through the code, it seems that NGUI calls ProcessTouch after calling ProcessOther, so after pressing Enter on a button to change menus, suddenly UICamera.selectedObject gets set to null, removing the focus.
UICamera:set_selectedObject(GameObject) (at Assets/NGUI/Scripts/UI/UICamera.cs:351)
UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:1062)
UICamera:ProcessOthers() (at Assets/NGUI/Scripts/UI/UICamera.cs:995)
UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:795)
Why would it be doing this?
It seems to change depending on whether the UIButton that calls my script has a trigger of OnPress or OnClick.
When it's OnClick() only one event is generated when you let go of the key, but with OnPress() it seems to generate a bunch of weird touch events that cause UICamera.selectedObject to be set to null.