# Making an object(s) appear and Dissappear with right mouse button.

**URL:** <https://forums.unrealengine.com/t/making-an-object-s-appear-and-dissappear-with-right-mouse-button/2220882>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [December 14, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/making-an-object-s-appear-and-dissappear-with-right-mouse-button/2220882 "2024-12-14T20:32:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dj\_ziff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dj\_ziff](https://forums.unrealengine.com/u/dj_ziff)\
**Post date:** [December 14, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/making-an-object-s-appear-and-dissappear-with-right-mouse-button/2220882/1 "2024-12-14T20:32:39Z")

</div>

Hi,

I’m a beginner and really need help with my blueprints. I’m trying to have an object appear and disappear any time the right mouse button is clicked. Every way I try to do this though, it fails! I need the right mouse to turn on and off the visibility of multiple objects in my level. Here is what I have so far. I keep getting a runtime error with blueprints shown below. If you have any suggestions of how to do this, let me know. Please help!!

 ![Screenshot 2024-12-14 074657](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/4/ce490c9d4d55ab0cad575209fd74efae4706437a.png)  
 ![Screenshot 2024-12-14 074757](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/8/e58975dc76b4679c310951330335307211e1452f.jpeg)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [December 15, 2024, 3:48am UTC](https://forums.unrealengine.com/t/making-an-object-s-appear-and-dissappear-with-right-mouse-button/2220882/2 "2024-12-15T03:48:04Z")

</div>

You need to get a reference to the actor “instance” (BP-RockColumn) that’s in the level.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 15, 2024, 8:29am UTC](https://forums.unrealengine.com/t/making-an-object-s-appear-and-dissappear-with-right-mouse-button/2220882/3 "2024-12-15T08:29:04Z")

</div>

you can use GetHitResultUnderCursor to get the Actor reference and then call an interface on that Actor to toggle visibility

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 14, 2025, 8:29am UTC](https://forums.unrealengine.com/t/making-an-object-s-appear-and-dissappear-with-right-mouse-button/2220882/4 "2025-01-14T08:29:28Z")

</div>

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