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 do I activate a HUD widget based on overlap?

Im trying to activate a battle screen when i enter a box collision (BattleTrigger), which will be like a pokemon battle screen, but i dont know how to tell the HUD that the collision has happend so that it will show the widget in the HUD.

Im guessing i have to cast something to the HUD but i dont know what or where im supposed to cast, or how to then access the casted 'object?'.

alt text

Product Version: UE 4.10
battletrigger.jpg (248.9 kB)
more ▼

asked Dec 25 '15 at 08:28 AM in Blueprint Scripting

avatar image

14 2 4 8

avatar image RuBa1987 Dec 25 '15 at 01:02 PM

I suppose the simplest way to do it would be to add and remove the HUD widget to/from the viewport. I believe the nodes are called AddToViewport and RemoveFromParent and the exist on a user widget. Just be careful to only create the widget once or you may end up with memory issues.

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

1 answer: sort voted first

OnComponentBeginOverlap(Box) ---> Create Widget ---> Add to Viewport ---> Set Show Mouse Cursor ---> Get Player Controller

more ▼

answered Dec 25 '15 at 02:40 PM

avatar image

170 47 49 60

(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