Making an actor visible only from a scenecapture2d

I need to make an actor visible only to a scenecapture2d and invisible to the main player camera.

This is so that the player will only be able to see the actor when viewed through a security camera.

This is a very important feature of my game, is there any way to do this in the current version of UE4?

Hmmm, I haven’t really messed around with tags yet in Unreal. But that certainly seems like something they would help you handle. For example you could tag your object with ‘CameraOnly’ and exclude anything with that tag from being rendered by your Player Camera.

I can’t find any function for actually hiding them from a specific camera though. You can set them to be universally visible or not, you can also choose to hide them specifically from a scenecapture2d, but there is no way I can find to hide them from just one camera.

It’s pretty frustrating!

I fixed my problem by diving into the source code, I inserted a new array of extra hidden actors on the player controller and then added a line to append it to the hidden actors array that is built by the game (I assume for occlusion culling purposes).

Now I can insert actors that I don’t want the player to see into the extra actors array using blueprint, works like a charm!

Can you please explain better I need to do this.

Hello capnbubs,

So after a bit of trial troubleshooting on my own using blueprint scripting, I discovered a really simple way to achieve what you are trying to do.

What I did was set up a trigger box in my level what when overlapping, would toggle to a camera in my level. After setting the camera as my active view, I just added an “Actor Hidden In Game.” node and the actor I was toggling disappeared. Keep in mind if you want to make this believable you need to toggle off static shadows for the object you are hiding so the shadow does not remain when the object disappears.

Here is how I set it up in my level blueprint and in my scene as well.

Scene Set-Up

Level Blueprint Set-Up

End Effect

Hope this helps you achieve your goal!


1 Like

Yes please we need details, it sounds really clever.

This does not help a bit, it is easy to hide objects from all cameras, but no way to make things visible only to a specified camera, that would be what I am actually looking for the most. If we would have any way to make a camera only see what we want it to see, independently from which objects are visible set or not, then we could for example add a vision of the map where only the edges are visible to the specified camera (while the other cameras render all objects, that are set visible) or make only objects exclusively visible to the specific camera that contain a boolean variable, that enables vision to the specified camera only. Or to describe it with other words : it would be some kind of individual render mode for a specified camera. Any help ?

Is there a way I can access the standard camera blueprint source code and copy it to create a special camera with that possibilities ?

Hey, can you explain it for us?

I have made a patch and pull request for this feature.

This adds Blueprint functions to the PlayerController to selectively hide components from the player, but not from SceneCapture components.

Hey everyone,

After a bit of troubleshooting with blueprints I was able to set up an actor that was hidden to the player but visible if viewed from another camera. First I created a HiddenObject blueprint with the static mesh to be hidden. In the static mesh’s details settings I set the Rendering option “Owner No See” to true and used the Set Owner node to make my player the owner of the actor. The collision was set to “No Collision” so the player wouldn’t run into the invisible mesh.

Since the player is now the owner of the actor it will not appear for the player camera. When the camera view is switched to another camera (such as a security camera), this new camera is NOT the owner so it can still see the mesh. Hopefully this helps setting up objects to be hidden from the player but still visible from another camera.



You can do it if you grab the scenecapture2d, then look for hide actor components. Attach the reference for any actor you want to hide. And that’s it.

In UE5 there is now an option to make objects only visible to scenecapture cameras

1 Like