[LineRenderer] Why does the line shrink for a second and come back to it's original size?

The title says it all.

xcr5mz

The Unity LineRenderer is pretty limited in functionality. It used to be awful, completely unusable, but it got a few useful updates in 2018. But it still has a ton of weird things like what you’re seeing.

For general vector line rendering stuff you probably want to reach for something like Vectrosity on the asset store:

Or else just cut your own meshes procedurally. If you wanna tinker with procedural meshes, you’re welcome to sniff around my MakeGeo project for some example code:

MakeGeo is presently hosted at these locations:

https://bitbucket.org/kurtdekker/makegeo

https://github.com/kurtdekker/makegeo

2 Likes

Thanks for commenting. There are few things I want to add:

  1. Are you sure this weird behaviour is caused by the Line Renderer itself and not it’s settings or a bug in my code?
  2. I am doing this project for fun, so I can’t afford to spend any money. If you know any free components that does the same job of Vectrosity, please tell me.
  3. Thanks for sharing your MakeGeo project, I actually thought of making meshes like you did until I found about TrailRenderer then LineRenderer(don’t ask why I didn’t know about them despite using Unity for 3 years). If I can’t make it to work, then I probably will use your MakeGeo.