Buttons - Pointer events and Actions

Hey guys,

We have had a few questions recently regarding buttons and more importantly how to make them interactive.

The main usage of a button in Studio is generally to activate a state or play a timeline. This can be done 2 different ways - Pointer events (scripting) or Actions (no-scripting).

I have created 2 very simple project examples which showcase both methods.

Pointer events: Pointer Event Button example.zip (200.0 KB)

Actions: Actions Button example.zip (248.7 KB)

Please note: As this is a simple example, the content is not tracked to a target image so will appear in 2D screen space.

In both examples there is an info button, which when touched, brings up an info bubble and an exit button. The info bubble and exit button (both in a group) have their visibility and enabled property added to a controller named info bubble.

This controller holds 2 states, hidden and shown, which are activated either when the info button is pressed or the exit button is pressed.

Hopefully this should help explain how buttons can be used in Studio. If there are any questions regarding these 2 examples, please let us know.

George

1 Like