# Hide SceneComponent from specific camera

**URL:** <https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303>\
**Category:** Cinematics & Media\
**Tags:** scenecomponent, unreal-engine, question\
**Created:** [January 18, 2015, 5:51pm UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303 "2015-01-18T17:51:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elewyth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elewyth](https://forums.unrealengine.com/u/Elewyth)\
**Post date:** [January 18, 2015, 5:51pm UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/1 "2015-01-18T17:51:18Z")

</div>

Hi,

I’m relatively new to UE4 and have been struggling with the following problem:

I’m trying to implement a Minimap for an RTS-style game. I have chosen the approach of using a SceneCapture2D which captures the map from above, so changes to the terrain will automatically be captured. However, I would like to have the Actors be shown as solid-color rectangles instead of their actual meshes. The idea I had for that, was to attach a rectangle mesh with a solid-color texture on top of each actor, somewhat like a hat. The SceneCapture2D would then only see the rectangles above each actor and render these (into the HUD).

Now where things get tricky, is that I obviously don’t want to see all these rectangles above each actor’s heads as a Player. I saw the functions “Hide Component” and “Hide Actor Components” for a SceneCapture, but sadly there doesn’t seem to be an equivalent function for a camera. All answers on here, which asked similar questions, seem to have been resolved by using the “Set Hidden in Game” function, which won’t cut it for my use, since I only want to hide the mesh from a single camera (or rather all instances of a Camera-Blueprint).

I also tried using “Only Owner See”, but I couldn’t figure out how to set the SceneCapture2D as the owner of the rectangle-mesh (also I don’t think this would work in a multiplayer scenario, where each Player has his own SceneCapture2D for their own minimap).

Does anyone know a way to hide a SceneComponent from (one or more) specific cameras? Or if anyone has a better suggestion on how to go about implementing my minimap, I’d be happy as well.

Thanks in advance, Elewyth.

**Edit** : Added a screen shot of the actor components (left), how the actors currently look in-game (center) and how the minimap looks (right).

![27087-actorcomponents.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/2/fe226261a30743e10590ef941436add4be4c608e.png)

![27088-actoringame.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/c/25c79a099917b76cd381f5ea44655785a71f040f.png)

![27085-minimap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/7/2e7dbabe7b0474b23aac0eb787a92204a3eb32b1.png)

---

<div class="post-metadata">

**Author:** ![DratoAAA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DratoAAA](https://forums.unrealengine.com/u/DratoAAA)\
**Post date:** [May 26, 2015, 3:40pm UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/2 "2015-05-26T15:40:35Z")

</div>

I would be interested in a solution for that as well.

---

<div class="post-metadata">

**Author:** ![alto\_andre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alto\_andre](https://forums.unrealengine.com/u/alto_andre)\
**Post date:** [April 1, 2016, 4:04am UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/3 "2016-04-01T04:04:00Z")

</div>

Hey, were you able to accomplish this? I’m quite interested as well!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_21ba43ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_21ba43ad](https://forums.unrealengine.com/u/anonymous_user_21ba43ad)\
**Post date:** [April 1, 2016, 4:17am UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/4 "2016-04-01T04:17:26Z")

</div>

What you could do is get references to the player actors in your camera blueprint, then spawn the rectangles according to this references and attach them to their respective players. This way, the camera blueprint owns them since it spawned them. So the OnlyOwnerCanSee node should do the trick.

---

<div class="post-metadata">

**Author:** ![alto\_andre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@alto\_andre](https://forums.unrealengine.com/u/alto_andre)\
**Post date:** [April 1, 2016, 6:50am UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/5 "2016-04-01T06:50:10Z")

</div>

Thank you for the tip! It took me a while to get it working but I could finally do it! 😉

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_21ba43ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_21ba43ad](https://forums.unrealengine.com/u/anonymous_user_21ba43ad)\
**Post date:** [April 1, 2016, 7:10am UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/6 "2016-04-01T07:10:27Z")

</div>

Glad I could help 😃 !!

---

<div class="post-metadata">

**Author:** ![Bater](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bater](https://forums.unrealengine.com/u/Bater)\
**Post date:** [March 25, 2019, 7:58am UTC](https://forums.unrealengine.com/t/hide-scenecomponent-from-specific-camera/304303/7 "2019-03-25T07:58:07Z")

</div>

Can you share the trick with us as I’m confused by the issue, I would like to show an icon on the game map that doesn’t show on any other cameras, like your triangles, now Scene Capture 2d can do this but how can it be done with all the other cameras in the game set at least the player camera!
