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"

start and stop line tracing

I have a function that Event Tick in my actor a line trace will start from my motion controller. How can I turn off and on the line trace.... basically I am tracing for objects in a room, when the line trace hits a object a umg menu pops up that allows me to change materials...I have all that working but a few issues are happening. Both my widget menus have hit enabled when the only one enabled should be the object that I hit at the time. Another issue is the line tracing, so I line trace one object and move the controller around it then line traces the 2nd object...I need to be able to disable the 2nd line trace so it doesn't bring up with 2nd widget........ is there a way to Able and Disable a line trace and also is there a widget setting for when the widget is invisible , disable hit detection for another widget? right now I am trying to have it for when one widget is visible disable hit detection on the other widget but I am having no luck.

Product Version: UE 4.13
Tags:
more ▼

asked Nov 08 '16 at 08:06 PM in Using UE4

avatar image

YourOwnSkills
6 2 4 5

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

1 answer: sort voted first

Booleans and Branches are your best friend for these kinds of things.

You can have one Boolean (true/false) for when a widget is open, and if it's true, then don't allow any other widgets to open until that Boolean is false.

You can do the same thing with the trace. You should AVOID using Event tick for anything, wherever possible. You shouldn't be tracing from event tick. It sounds like you're using VR, so you could have a trace fire on a button press instead of event tick.

more ▼

answered May 01 '19 at 08:42 PM

avatar image

Ronnie Olive
136 2 3 2

(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