I'm using Unity 3.5.7 and can't get a UIInput to call it's delegate onSubmit functions.
I've put a breakpoint in UIInput.cs on the Submit function and it never gets called. I've filled in the component correctly, it just doesn't get called. (This is in the editor with OSX as the target)
Further debugging: in the UIInput OnGUI function it breaks on the "if" line but never breaks on the processEvent line.
void OnGUI ()
{
Debug.Log("isSelected " + isSelected + "Event " + Event.current);
if (isSelected && Event.current.rawType == EventType.KeyDown)
ProcessEvent(Event.current);
}
Here is the output from the log when typing "hello" + Return
isSelected TrueEvent Layout
isSelected TrueEvent Repaint
isSelected TrueEvent Event:KeyUp Character:\0 Modifiers:0 KeyCode:H
isSelected TrueEvent Event:KeyUp Character:\0 Modifiers:0 KeyCode:E (etc)
isSelected TrueEvent Event:KeyUp Character:\0 Modifiers:0 KeyCode:Return <<<<<error
As you can see your code expects a keydown event but never gets one, it does get a keyup event instead.