Okay. I am trying to step back and evaluate what I am doing.
I originally opened up that Example 3, it had the nice window you click options it flies to the other window, you click done it flies back. Does this all day.
I just wanted it to do this when the enter key or joystick was pressed and the options button was highlighted.
So I added to the Options Button in Panel - Main (which is enabled) two scripts:
I added a UIKey Navigation script (Added this to all the buttons on Panel - Main). So great, I can move the keyboard up down and even hit enter and it makes the sound like it was clicked (as each button in this demo has a sound but the options button sounds different when clicked). All this still happens. It just never goes to the next window? So i thought "a-ha I need a UIKey binding to intercept the enter/joystickbutton press" So the UIKey binding on the options button is:
Key Code: Return
Modifier: None
Action: PressAndClick
I thought this would act as if a click was pressed on that button, which to me should set off the animations and the tweens. But this never happens, it clicks, makse the noise, the animation of the clicking.
Now I discover if the UIKey binding is and attached to t hat options button, then pressing enter on any selection always makes that one click too. So i disabled the UIKey binding.
So I can select with the UIKey navigation script and arrow keys any button (and if I goto all their animations that do the hover animation, and change that to selected) the animations work as I press up and down on the arrow keys. But pressing enter: does the click animation, plays the selected click sound but never goes to the other window. Which the other window is ultimately disabled. The thing that confuses me is why does it act like its clicking just never execute the fly to the other window, is it because the UIPlay Animation and UIPlay tween scripts are all looking for a trigger even of "OnClick" which if that was the case, and pressing enter on a button with UIKey Navigation on it means it should NOT make the clicking noise or anything, but it is, which sure enough the UIPlay sound looks for OnClick.
To me the Pressing enter while a key is selected (like options key) mimics an OnClick as the sound plays, and the other clicking animation plays, but the other things that trigger to onclick (Play animations to fly windows in and out) never play. So I am not sure what I am missing, the UIPlay Animations all have if disabled on start enable the play (the two animations for the window no the one for the button selection, that was previous on hover
Since this is to me a simple case of attaching the UIKey Navigation to the options button from that demo so that pressing enter (or the A button on a 360 game pad) makes that options button press and goto the other window seemed pretty straight forward I am not sure where the disconnect of my understanding of this process is.