Time for action ā using the UI Emulator to test the FreeSDK demo menus
Follow the given steps:
Open the UI Emulator and enable the Flow Graph updates (the play button in the top menu bar). Clear the state by pressing the little trash icon.
Now click on the Sys->UI button in the Objects panel. If you select the System UIEventSytem, you will find a list of all the system events. If you double-click on one of the events in the event list, it gets attached to the Emulation panel on the right.
For now, we want to see what happens if the game starts, if a level loads, and if the gameplay starts. So let's add the following events to the Emulation panel:
OnSystemStart
OnLoadingStart
OnGameplayStated
If you call
OnSystemStart
, the main menu should appear. You can also look into the Flow Graph and enable Flow Graph debugging to see which nodes are triggered to fill the main menu. The flow starts in thesys_statecontrol
UI Action (there should be the UI:Events:System:OnSystemStart node that then starts...