Questions tagged [line-renderer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
51 views

Animate Vertex LineRenderer

How can I animate a property of a GameObject when that property isn't on the animation window? Or how can I add a property that isn't on the animation window by default? For example: I'd like to ...
0
votes
0answers
24 views

Unity3D) Is there a way not to draw line renderer if vertex pos is zero?

I make a curved line with line renderer. and a sphere move along it. i want to draw a line only behind the sphere. so i do something like this. `` lr.positionCount = 256; ...
2
votes
1answer
577 views

How to render line renderer or trail renderer above UI canvas

I want to create a line renderer and also trail renderer that would follow touches but both must be rendered above my UI canvas — how can I do this? I have tried this with the "screen space camera" ...
0
votes
1answer
65 views

How do make a box collider align with a line renderer continuously?

I am having the issue of aligning my BoxCollider2D with my linerenderer. I am trying to have a laser shoot using: ...
0
votes
1answer
73 views

How to get LineRenderer coordinates?

I am trying to get the coordinates or positions that are generated at the time I draw with linerenderer, but it gives me an error. This may be a rookie mistake and I am not using the Linerenderer's ...
2
votes
1answer
554 views

Drawing an arrow using the LineRenderer in unity

I'm trying to draw an arrow using a LineRenderer in Unity, using the code suggested here. Based on the UI it all seems good, yet it draws a pin needle, rather than ...
1
vote
0answers
122 views

Incorrect draw order with LineRenderer

I have a Player game object with a sprite renderer and a line renderer. The sprite for its body and the line for a rope. The problem is that the rope isn't visible (I can see it's drawn in the scene ...
0
votes
2answers
69 views

Preventing the final segment in a linerenderer from being stiff?

I am creating a fishing pole, and have the script that draws the line -mostly- worked out using verlet physics. However, the final segment is stiff. The code follows an old Unity3D Subreddit post. ...
3
votes
0answers
108 views

Line Renderer 2d Follow the edge

I am using mouse position to draw a line using line renderer 2d. What i want is when the line hits a collider it should start to draw on the edge of the collider rather than over the collider. ...
0
votes
1answer
167 views

How to make a 2D sprite slowly vanish as it crosses a line — as if disappearing behind a wall?

...Except there is no wall. Only one of its edges. Here is what I mean. Notice how the lines "sink" into the center square. I've been trying to do something very similar, in Unity. My approach is to ...
3
votes
1answer
423 views

Show Unity Line Renderer as 3d cable or wire

I am dynamically making a line renderer which is pull by the character to show that a character is pulling a wire. The line renderer working fine but unfortunately its display is not according to my ...