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 to draw a line in the HUD?

Hi all,

I am wondering how it is possible to draw a line on user input.

Well, my main problem is even to display a line. Here is my BP:

alt text

I want to display a line (the way user draws it).

I have some how to push the line to the viewbox... but it accepting only widgets.

any idea?

Product Version: UE 4.14
more ▼

asked Dec 26 '16 at 02:56 PM in Blueprint Scripting

avatar image

Fincha Solution
1 1 1 2

avatar image Vertex Soup Nov 27 '17 at 08:11 PM

Try to hook it up to Tick as I think what it is doing it only draw it for one frame so you might not notice it..

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

1 answer: sort voted first

You can use the node "Project World location to Screen" and get the Vector2d value from the a 3D point and use it to draw the line.

Look this: https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/ProjectWorldtoScreen/

more ▼

answered Nov 27 '17 at 08:27 PM

avatar image

310 3 7 10

(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