Make a Circle using LineRenderer in Unity

Make a Circle using LineRenderer in Unity

Great little script for Unity that makes a LineRenderer component shape into a circle or ellipse, given the number of line segments along with x and y radius.

Script by MarkPixel. Original thread here. Full Script Below.

 

Liked it? Take a second to support Justin Fletcher on Patreon!
The following two tabs change content below.
Game Designer, Programmer, Lover of all things retro. I've been a programmer for about 8 years. Got into game development part time 6 years ago and haven't been able to put it down.

Latest posts by Justin Fletcher (see all)


About Author

Justin Fletcher

Game Designer, Programmer, Lover of all things retro. I've been a programmer for about 8 years. Got into game development part time 6 years ago and haven't been able to put it down.

1 Comment

Henk

July 29, 2018 at 12:04 pm

Not very useful, as you cannot set the location of the circle. It is always at the origin.

Did you even use this code or just copy+paste?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Log In

Support Us

Support The Weekly Coder on Patreon!

WeeklyCoderTV

Recent Popular Info

About:
This channel is all about coding. We will mostly post tutorials on making games with Unity 5 and above. Other posts will include tutorials on specific game mechanics and whatever else we feel like talking about.

Don't be shy.. If you have a question, leave a comment. If you you'd like to see a specific tutorial feel free to request it. If we think its worthwhile, then we may just do it.

Please don't forget to click the like button and remember to subscribe. Feel free to support our channel and the awesome content we create.

Total subscribers:
1.9 thousand

Total uploads:
80

Total upload views:
250.2 thousand

Follow me on Twitter

Subscribe

RSS Feed

Blog Authors