Buttons and Actions
Last updated
Last updated
MyWebAR allows you to assign multiple interactive events to any object on the scene.
These events include:
• Open webpage on click • Play audio file on click • Play 3D model animation on load • Play 3D model animation on click • Play/pause embedded media on click • Move object to position on click • Move object to position on load • Show/hide object on click
To add a trigger to an object select it on the AR Content panel on the left, then go to the Actions tab of the Properties panel on the right.
Select the desired behavior from the list and click on the + button.
The action you have added will appear on the list.
Click on an action on the list to expand its settings. Each action has a different set of settings.
For example, if you add the Play/Pause Animation on Click attribute to your 3D model, you can select one of the animations embedded into the GLB file by specifying its index, make the animation loop and make it play by default.
You can also make one object trigger an action on another object.
For example, you can play a 3D model animation by clicking on a new 3d object acting as a button by taking the following steps:
Select your 3D model and add the Play/Pause Animation on Click attribute to it.
Go to the actions settings and set your image as an Event Source.
Click on the Publish button to make the changes live.
Now clicking on the car icon on the scene will play the first animation embedded into the 3D model (Index 0).