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"

How to make floating widget component unclickable

Hello

I followed this tutorial https://youtu.be/M7w9OfPRpKM to make floating health bars above my units in RTS like game. The bar is working propertly, but it's causing problems with my selecting units algorithm, as widget component is being recognized as a part of the character, even out of it's elements.

Can I make it transparent for function like GetActorsInSelectionRectangle or GetHitResultUnderCursor? (Or make those functions react to mesh/capsule only?)

Product Version: UE 4.17
Tags:
more ▼

asked Feb 04 '18 at 09:29 PM in Using UE4

avatar image

Cansisti
41 8 10 15

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

1 answer: sort voted first

Select your widget in components tab, go to details, find collision tab select custom and set visibility trace to ignore, i advise to set everything to ignore too unless you need it to receive collision.. alt text

снимок.png (109.4 kB)
more ▼

answered Feb 04 '18 at 11:16 PM

avatar image

Sardorian
412 8 4 8

avatar image Cansisti Feb 04 '18 at 11:24 PM

Thanks! Will setting it's parent like this do it actually, or do I have to set exactly the widget? (It's a child of scene component in my hierarchy)

avatar image Sardorian Feb 04 '18 at 11:25 PM

set exactly widget

(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