Hi,
Is anyone aware of a method for selecting only the objects that are visible from a camera or area in the Editor?
I have a huge cityscape model. When we use it as a background and only need to see it from a small area or a particular camera, it would be fantastic if is a method for selecting only what the camera sees or what is visible from a given area (or permanently culling occluded objects.
Thanks!
-Donald
I am trying to do this myself, And thinking about it probably the best way to do this is to do a Blutility that you can define the camera and then it fires a hit trace for each pixel on screen (thinking out loud here) and adds those actors to an array. (these are your selected actors) you can then call the SetActorSelectionState on each of them.
Once you have them selected, move them to a group or level and then delete the rest.
Will let you know how I get on.
I have created a blutility that can select all the actors that a certain camera sees.
You have to drop an instance of the blueprint into the scene and assign it a camera, it has variables to select how far you want to select and how many “samples” you want to take.
Let me know if that helps.
You can check it out here: