# 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

**URL:** https://forum.8thwall.com/t/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/1029
**Category:** Technical Support
**Created:** [April 8, 2024, 6:41pm UTC](https://forum.8thwall.com/t/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/1029 "2024-04-08T18:41:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alen\_Atrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/alen_atrey/32/173_2.png) [@Alen\_Atrey](https://forum.8thwall.com/u/Alen_Atrey)
#### Post date: [April 8, 2024, 6:41pm UTC](https://forum.8thwall.com/t/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/1029/1 "2024-04-08T18:41:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Evan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/evan/32/431_2.png) [@Evan](https://forum.8thwall.com/u/Evan)
#### Post date: [April 8, 2024, 7:26pm UTC](https://forum.8thwall.com/t/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/1029/2 "2024-04-08T19:26:03Z")

</div>

If you want to learn more about adding custom behavior to your A-Frame scene, I would highly recommend completing [A-Frame school](https://aframe.io/aframe-school/#/) and [Lesson 3 of our Start to Publish course](https://8cademy.notion.site/Lesson-3-Animations-Assets-and-A-Frame-ed19e288ae344a64b98e5849a2b0a48e).

A good place to start would be to [write a custom A-Frame component](https://aframe.io/docs/1.5.0/introduction/writing-a-component.html) 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:

> [@How to detect when a user taps on a 3D model?](https://forum.8thwall.com/t/how-to-detect-when-a-user-taps-on-a-3d-model/605/2):
>
> Hello! I’d recommend taking a look at this sample project: [A-Frame: Tap to Place Ground | 8th Wall | 8th Wall](https://www.8thwall.com/8thwall/placeground-aframe) When the user taps on the “ground” object in the scene (a transparent plane) it spawns a 3d model at that location. Some of the key pieces here: Camera has a raycaster, configured to interact with entities that have the “cantap” class (see [A-Frame: Tap to Place Ground | 8th Wall | 8th Wall](https://www.8thwall.com/8thwall/placeground-aframe/code/body.html#L34)) Receiving entity (“ground plane”) configured with class="cantap" to receive raycasts (see [A-F…](https://www.8thwall.com/8thwall/placeground-aframe/code/body.html#L62)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)
#### Post date: [May 14, 2024, 10:09pm UTC](https://forum.8thwall.com/t/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/1029/3 "2024-05-14T22:09:38Z")

</div>

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