# 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:** 1
**Showing post:** 2

<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)

---

_[View the full topic](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)._
