SceneCapture2d, Show Only Class ?

Hello, im trying to create a simple radar system to show on a screen a specific type of object.

I have a Scene capture 2d on my character that is set to orthographic and it capture the surrouding of the player.

I saw that i could add some “filter” on it, to hide everything BUT a specific actor and it works well but i would have to manually add every single actor one by one, but i will have a lot of these in the level, so im trying to set a Show Only CLASS instead of specific actors…

How could i do that ?

See, and this is the exact scenario the Get All Actors of Class node is useful for:

1 Like

Oh i was not aware that i could set the show only actors from the Scenecapture2d component !

So if anyone have this issue in the future ;

  • at begin play, do a get all actors of class and set it to an array variable.
  • drag your scenecapture2d component in the Blueprint
  • from the pin of your scenecapturecomponent node, drag and search for : “show only” at the bottom of the list you’ll see a “Set Show Only Actors”

  • Now just plug your Stored array (the one containing your desired Class actors)
  • all that can run on Event BeginPlay

Now The SceneCapture2d will ignore everything exept actors of that specified class !

Thanks a lot for your help !

Don’t forget to:

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