Hello,
Is there a strict order in which the OnMenuElementClick and the OnMenuTurnOn events are called when we have a button with click type "Crossfade"? I'm quite certain my code worked with AC 1.79 so that first came the OnMenuElementClick and only after that the OnMenuTurnOn for the new menu. Now, after AC 1.80 it seems to go other way around. Is this intentional?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the communitym @jrutila.
I don't recall this being changed with 1.80 - it's generally been the case that the OnMenuElementClick event is called after the initial effects of it are felt.
The only way I can reproduce the issue is if the Menu that contains the Button has no Transition - otherwise, the Menu needs to fade out (causing a delay) before the next Menu turns on.
What code are you running? If you can share some details about your situation, I can try to give more specific advice.
Thank you for the insight. I ended up calling the crossfade from the custom script I had there. To me it sounded more logical to have the OnMenuElementClick before the OnMenuTurnOn. I have been fiddling with the Unity UI Prefab menu. It might have something to do with that I now have prefab menus that pause the game.