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"

Correct way to Draw Line (not debug)

Hello,

I would like to ask you if my blueprint script is correct for drawing lines (screenshot below), I would like to use it for production, but it says that Draw Line is Debug, what does it mean? That I shouldn't use it for production? Because I want only simple line like Draw Debug Line, particle effect would be overkill for me, and I am quite happy with Draw Debug Line.

blueprint image

I just have one more question, why my line is blurry when moving?

Blurry line

Product Version: UE 4.15
Tags:
more ▼

asked Apr 24 '18 at 06:50 PM in Blueprint Scripting

avatar image

t0msk
60 8 15 21

avatar image goncasmage Apr 24 '18 at 07:03 PM

I'm not 100% sure, but if you package your game as development, you can still do things like drawing Debug Lines, and Printing to Screen. Not if you package it as Shipping...

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

1 answer: sort voted first

There is no simple method of drawing lines in 3d space. As goncasmage mentioned, if shipping mode is what you're after, your debug nodes will not produce anything - unless something has changed recently, which is unlikely.

You can draw lines in 2d space. Either using widgets, or using HUD class' special Event.

Alternatively, look into Rama's Victory plugin - the debug nodes that you know are fully exposed there and may even come with extra features:

https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/4014-39-rama-s-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required

And yet another method (to do it in 3d) is to use Splines, not the most performant but it gives you a lot of flexibility over the way the lines look. Check out the last pic in this post and here:

And yet another way is to draw them in material. Somewhat complicated to set up but the results are decent. Good ratio of performance vs flexibility.

And particles, but you know that already.

more ▼

answered Apr 24 '18 at 07:12 PM

avatar image

Everynone
12.5k 71 24 51

avatar image t0msk Apr 24 '18 at 07:41 PM

So there is no "native" way in Unreal Engine to draw lines in 3D space for production? Only particle effect?

avatar image Everynone Apr 24 '18 at 09:45 PM

As far as blueprints are concerned, yes - there's no easy way to draw quality 3d lines. Rama's plugin allows for the debug nodes to work correctly if I remember right.

Only particle effect?

As I mentioned above, material and splines are the other options.

avatar image t0msk Apr 24 '18 at 09:51 PM

Okey, thank you.

(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