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"

Get actor at location?

I'm trying to get the actor that is tapped on the screen. I've tried several methods such as getting the bounds of the actor and if the touch is in there than it's selected, and spawning an object at the location of the touch that will get whatever actor it's touching and then destroy itself. Is there any way to get the actor that is at a location(i.e, the touch location)?

Product Version: UE 4.8
Tags:
more ▼

asked Jul 20 '15 at 04:55 PM in Blueprint Scripting

avatar image

danman1218
10 4 5 8

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

2 answers: sort voted first

Ok so I ended up making a solution that works. It's very long and looks terrifying so rather than post a picture, paste this into your blueprints to try it for yourself.

more ▼

answered Jul 20 '15 at 07:28 PM

avatar image

danman1218
10 4 5 8

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

I think you can do a cast from the cursor/touch position and just use the collision hit to get a reference.

https://answers.unrealengine.com/questions/25223/how-to-trace-from-screen-mouse-position-to-target.html

more ▼

answered Jul 20 '15 at 09:52 PM

avatar image

RAVaught
704 44 28 68

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question