x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Closed] Search for actors visible on the screen?

Hi!

Is there a way to only search for actors visible on the screen? Or e.g. how do you run a collision test with a shape like the view frustum in code?

Product Version: Not Selected
Tags:
more ▼

asked Jun 14 '14 at 05:01 PM in C++ Programming

avatar image

undercover
843 123 111 138

avatar image GQY Mar 30 '16 at 09:39 AM

i want a C++ do you have a link

avatar image undercover Apr 04 '16 at 01:07 PM

You may want to check out Rama’s work which is linked below already. It’s written in C++ and can also be used in blueprints. If that doesn’t meet your needs for any reason you can implement your own custom solution that suits your game. That can be done by e.g. doing some basic build in collision checks or otherwise I’m afraid that you will have to use some math/black magic.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Jun 17 '14 at 04:49 PM by undercover for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Do you want to do it in C++ or Blueprints?

Rama recently released some blueprint functions. One of them gets currently rendered actors. Link

more ▼

answered Jun 14 '14 at 05:56 PM

avatar image

dissonanceint
1k 42 28 65

avatar image undercover Jun 15 '14 at 11:38 AM

Thanks! I will check that out.

avatar image LuxFlux Jul 01 '15 at 10:09 PM

I know its a bit late, but were you able to get Rama's blueprint functions for actor visibility to work? Thanks!

avatar image undercover Jul 03 '15 at 02:04 PM

It worked but I ended up just using some collision checks and then iterating through the actors.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question