Hi folks,
My Pause Menu buttons have stopped responding to key presses. They still highlight, and they also still "flash" when they are pressed - however, they no longer go to the relevant menu, such as Options or save/load. I also cannot use the Resume game button. I think it may be because I deleted the visible in-game menu (bottom-left corner of screen in demos) from the menu manager - I'm guessing I should have just disabled/hidden it instead.
How can I get the functionality back into my menu buttons?
*As an aside, my inventory items are selected using submit (return) instead of interactionA - how can I get it to use interactionA instead?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I'm assuming your using Unity UI-based Menus here. UI menus rely on an EventManager gameobject for their control - AC will create a default one but you can prefab your own and assign it in your Menu Manager for AC to use instead. This will allow you to specify the Input button it responds to.
What input method have you chosen in your Settings Manager?
It used to work before the recent update btw.
Anyway, yes, I am using Unity UI menus. In my settings manager my Input Method is Keyboard or Controller, with the appear type of the menus to "on input key." Also of note, the menu still works in that it's being opened & closed by menu key (esc), so that works fine, I just can't use any of the options in the menu. It's just strange that the buttons still flash when the key is pressed, so the inputs are obviously registering. One tiny step is missing I think...
Drag the menu prefab into the scene, and then in the AC menu click on the puase, and look at the bottom (where it says all the buttons etc). Are these empty? If so, drag the buttons from the scene into the slots.
Edit: I second @klarax's advice re: checking the links. v1.51 introduced the ability to opt between mouse clicks vs "pointer down" events triggering a button, though this shouldn't affect keyboard-controlled UIs. Check your button's Reponds to setting in the Menu Manager.
Ok, it's still not working. Following your advice, here's what I did:
Dragged the PauseUI prefab into the scene, and reassigned all the buttons to the relevant "linked button" fields of the Menu Manager's Pause elements. Dragged the ui canvas back into my project's UI folder, replacing the old one. Dragged this prefab to the Linked canvas and it's Panel to the RectTransform boundary. Tested it out - doesn't work. Is there anything you notice I'm doing wrong in these steps?
@ChrisIceBox:I have tried both Pointer click and Pointer down options.
Going back a few steps, are you trying to trigger the buttons with Submit input? Is this Menu modified from the default provided one? Try switching back to the Demo_MenuManager asset and see if that also gives the same response.
Well I tested it anyway, and there is no problem with the demo Menu Manager - it even doesn't have that issue with the cursor being able to highlight the buttons, like in my unity ui version. I also noticed in the demo version that my InteractionA (e) was used to trigger buttons, rather than submit (return).
Still can't get mine to work though. Perhaps some setting I'm missing. In the Menu Manager, my Resume button for example says none, but it does have a recorded constant ID number - I'm guessing this is correct though, as there is no button in the scene since AC generates it when we play, the same as Inventory. Also the Pause Menu doesn't appear if I go into the Game Window, but it does with the Demo Manager menu, as per the tutorial.
If all's fine with that asset, it sounds like there is indeed some setting or such wrong in your own. You might want to consider just copying the Pause Menu from Demo_MenuManager and replacing your own with it.
Ok, it's now working, with some small changes:
Pause, Save & Load Menus are Adventure Creator.
Every other Menu is working fine as Unity UI (some I haven't tested yet, such as containers and dialogue). I'm happy with that - as long as it doesn't cause any problems down the road with Adventure Creator - Unity Ui Menu incompatibilities or something.