Transition to submenu from UI Button

Hi I am building a menu system using the new UI and I’m trying to find documentation on how I would transition from my main menu which is a canvas with UI buttons to a submenu for example a settings menu? It mentions in the documentation that a UI button (on click) event can be used for this but I can’t work out how. Can anyone point me in the right direction?
many thanks

Set the GameObject of the second menu disabled. Add an OnClick() trigger that calls SetEnabled(true) on the second menu. Add another trigger that calls SetEnabled(false) on the first menu. No need for code, just select methods and variables from the OnClick() section of the Button.

2 Likes

Excellent… works a treat…as simple as that… thanks very much :slight_smile: