Core
category and drag the AR_SCENE block to the workspace. After you’ve done, click the Run Program button. The camera in the visualization area will be triggered.
Please go to the Core Core
category => Drag the marker
block and drop it inside the AR scene block.
Next, go to the primitive
category, get the a-box
block, then put it inside the marker.
You can change the color of the box to red.
Run the program, after this step you should be able to see the red cube displayed on top of the marker. The default marker is Hiro which can be downloaded via this link.
To change the cube, click on the cube then hit Delete button (or drag it to the trash icon), go to Primitives and drag the GLTF model inside the marker.
To change the marker type, delete it, go to Data then drag the Pattern block and attach it to the old preset pattern
Run the program, you should be able to see Button 1 appears on top of the visualization's window.
This step will introduce you a simple behavior when the button 1 is clicked. It will display a "Hello world" message on the screen.
Go to Functions
, drag the Set Button on click to Actions
inside the Init block that you've created