Strugling with creating a "glb" object button that pressed upon will unhide the rest of the 3d assets and video that are in my scene

Strugling with creating a β€œglb” object button that pressed upon will unhide the rest of the 3d assets and video that are in my scene.I assume a java script must be required.I am not a coder so i am strugling to create one.
AS videos will not play without user interaction.I Require the user to press the 3d β€œglb” model inorder to unhide,unpause and unmute my videos.I also tried creating a splash screen to enable such a function,but it is just skipping it all together.

If you want to learn more about adding custom behavior to your A-Frame scene, I would highly recommend completing A-Frame school and Lesson 3 of our Start to Publish course.

A good place to start would be to write a custom A-Frame component that console.log when the model is clicked. If you want to click a 3D element in the scene, the camera and clickable entity need to be set up for raycasting:

1 Like

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.