Skip to main content

Example

This example presents a scene containing a button and solid color node which changes its color alternatively to red and green when the button is pressed.

In order to achieve this the state machine is created on the Button control. Except the Initial State the state machine contains another two states linked by two transitions. For both transitions the Sender has been defined as the Button. When the event Clicked occur the condition Check Click is verified and if it's true the corresponding action SetColor is executed.

 

BH: TO-DO Update image below(missing PseudoState/Note)

drawing-4-1682658051.png