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. 

Remove Widget Showing on Screen

Please, anyone can tell me how to make my widget no go away when it's not hitting the object ?
I have try this way, however, is not working. I will appreciate if someone shows me...
Thanks,

Sorry, Please anyone can tell me how to make my widget go away when not hitting the object? I have tried this way, however, it's not working. Please, can anyone show me? I have used showing with the delay on screen however, it's not what I am after... Thanks, Fernando

Product Version: UE 4.21
Tags:
capture.jpg (242.8 kB)
more ▼

asked Dec 22 '18 at 10:29 AM in Blueprint Scripting

avatar image

FernandoBrag
1 1 1

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

3 answers: sort voted first

when creating the widget, promote it to a variable then when you want to remove it, get it and drag out to remove from parent.

more ▼

answered Dec 22 '18 at 01:05 PM

avatar image

Gxbzi
8 2 2

avatar image FernandoBrag Dec 23 '18 at 01:39 PM

Thanks...but there is no easier way such as just to connect another function etc. Its just because for me I don't understand "promote variable and remove from parent"... Also if I connect when is false to remove all widget ..why is not working? I will appreciate if someone can show me with graphics... Thanks,

avatar image FernandoBrag Jan 08 '19 at 05:21 PM

Thanks Gxbzi

Is it possible for you to explain how to promote as variable and remove from parent ?

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

Honestly not the best way to go about it, I would probably just set visibility so you only create the widget once and use a "visible/hidden" toggle. BUT in your case the issue is with the branch node, that node is probably never "false" because you are likely using a line trace by channel and it will always hit something. If you just remove the branch node and hook everything directly to your cast node with the "fail" of the cast going to the "remove all widgets" node this will work. It is incredibly inefficient as casting on what is probably a tick from your line trace is unnecessary but it is the "easiest" way as you requested. I would learn about variables and such soon though or you are going to be having lots of bloated script.

more ▼

answered Jan 08 '19 at 06:29 PM

avatar image

Nebula Games Inc
5.4k 28 9 14

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

alt text I was doing something similar and just manually filtered out the On Hit result i wanted. This is Probably the entirely wrong way to do this.. but. it worked.

bp-ss.png (224.0 kB)
more ▼

answered Jan 08 '19 at 06:38 PM

avatar image

HierophantB
3 2

avatar image Nebula Games Inc Jan 08 '19 at 07:08 PM

You guys are working way too hard to do something fairly basic. Just set a reference to the desired class or object you want to search for then when you are within range (overlap a certain area for example, start a timer that fires off line traces and check the hit result against the actor you want). When you leave the area clear the timer. This way you only use line traces when necessary and you don't have to go through 3 branches to check what kind of actor you hit.

(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