FAQ
Lines Plus for Unreal · FAQ
I draw a line from a Blueprint and I do not see it. What should I check?
A line needs two different points at least. A line with fewer points exists, but it draws nothing. Check also that the Width of the style is above 0 and that the alpha of the Color is above 0. A line with a Draw Duration starts empty and draws itself in that time. In the editor, the first use of a line material can take a moment while its shaders compile.
How do I keep the same width when the line is far?
Set Width Unit to Screen Pixels. The width is then a number of pixels at any distance. This option works with the ribbon that faces the camera.
How do I make a line glow?
Raise Intensity above 1. The line then glows with the bloom of the scene. The Additive blend gives a stronger light effect.
How do I draw the aim of a weapon or the path of a grenade?
Call Draw Trajectory once with the start position and the launch velocity, and keep its handle. Then call Update Trajectory with the new values each time the aim changes. To make the path land on a target, get the launch velocity with the engine node Suggest Projectile Velocity Custom Arc.
How do I draw a line between two objects that move?
Use Draw Link with a component of each object. The line follows both objects and is removed when one of them is destroyed.
How do I move an object along a line?
Call Get Line Point, or Get Point At on a component, with a value from 0 to 1 and set the position of the object with the result.
How do I highlight the line under the cursor?
Call Find Line Under Cursor in each frame. When it returns a line, keep its look with Get Line Style and set a wider or brighter look with Set Line Style. When the cursor leaves the line, set the look that you kept. To know if the node returns the same line as before, compare the two handles with the == node.
How do I change the look of many lines while the game runs?
Give the same style asset to the lines. Then change the Style value of the asset and call Update Lines on the asset.
Snap to Ground does not move my line. What should I check?
The ground needs collision that blocks the Visibility channel. The line looks for it from 1,000 units above each point to 10,000 units below it. A point with no ground in that range keeps its position.
How do I draw thousands of lines?
Lines with the same blend mode are drawn together, so the number of lines has a low cost. For lines that never change one by one, like a grid, use Draw Segments: it creates all the lines with one call. Opaque lines are the cheapest ones.
A translucent line looks more opaque at some corners. Is this normal?
A translucent line shows a more opaque area where it crosses itself. This also happens at corners sharper than 60 degrees. Use a smooth curve, an opaque line or a wider angle to avoid it.
Translucent lines do not sort well against each other. What can I do?
Translucent lines that are drawn together are not sorted against each other. Use opaque lines, or the Additive blend, where the order does not change the result.
Why does the Lit option not change my line?
Lit works with opaque flat ribbons and tubes. A ribbon that faces the camera, a translucent line and an additive line show their own color without the light of the scene.
The draw animation does not play in the editor. Is this normal?
Yes. The draw animation, the erase animation and the fade out play in the game. The level editor shows the whole line. To see the animation without the game, open the style asset: its window plays the draw animation and the fade out in a loop.
Do the lines work on mobile?
Yes. The plugin works on Android and iOS with the same settings as on desktop.
Suggest an improvement
Help us improve this documentation page.