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"

Construction Script Draw Debug Line

I need to be able to draw a debug line between 2 points indefinitely within the construction script so that i can see it within the editor when I'm not in Play Mode.

Does anyone have any idea how to do this besides setting the duration to a high number?

Setting duration to -1 or 0 doesn't work either.

If there is a better way to visualize a connection between 2 points indefinitely within the editor then im all ears.

Product Version: Not Selected
Tags:
more ▼

asked Feb 15 '15 at 07:45 AM in Blueprint Scripting

avatar image

DevilsD
887 57 16 52

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

you might have better luck using an arrow component extending between the two points in space.

more ▼

answered Feb 15 '15 at 01:33 PM

avatar image

Furroy
691 26 86 61

avatar image DevilsD Feb 16 '15 at 05:11 AM

This might be a nice option.

(comments are locked)
10|2000 characters needed characters left

Just put the duration to a very high number like 9999. I do this with many of my blueprints and it hasn't caused any issues.

Just make sure you put a Flush Persistent Debug Lines node at the beginning of your construction script so it removes the old debug lines every time it runs instead of stacking them.

more ▼

answered Feb 15 '15 at 04:33 PM

avatar image

JeromeParent
1.1k 62 32 96

avatar image subramaniyanvg Jul 21 '15 at 10:05 AM

Increasing the duration works.

avatar image GeekToBe Feb 23 '18 at 01:31 PM

Thanks it's that ! "Flush Persistant Debug Lines" ! So happy thanks ! Works for my "Draw Debug Box".

Have fun !

avatar image Gavin.Kistner Mar 11 '18 at 09:40 PM

As noted by +nonrandom's answer, this technique only works for one active instance of the blueprint. As soon as you have two of them, adjusting one will erase all lines for all others.

(comments are locked)
10|2000 characters needed characters left

The problem with using a high duration and Flush Persistent Debug Lines is that it limits you to seeing exactly one instance of your blueprint as construction will make all other instances invisible, as well as any other blueprints that use the same method.

I recently ran into this same issue and ended up building a C++ side component with a matching FComponentVisualizer. I later found out that I could have also built a C++ component and matching FPrimitiveSceneProxy. The distinction is important as FComponentVisualizers only draw when the object is selected while FPrimitiveSceneProxys can be set to at all times or just when the object is selected.

more ▼

answered Aug 15 '15 at 05:05 AM

avatar image

Nonrandom
16 1 4

(comments are locked)
10|2000 characters needed characters left
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