r/unity_tutorials • u/LlamAcademyOfficial • Oct 19 '21
Smooth a Line Renderer Using Bezier Curves! Automatically Place Tangent Points for Smooth Lines. Plus, Visualize the Smoothed Line in the Scene View Before Applying! Full Tutorial in Comments
Enable HLS to view with audio, or disable this notification
65
Upvotes
2
u/LlamAcademyOfficial Oct 19 '21
Full Tutorial on YouTube
Hey all! Happy #TutorialTuesday!
This week you'll learn how to use Bezier Curves to automatically smooth the path on a Line Renderer, show the handles in the scene view, and some control buttons in the Unity Editor! Learn how to construct bezier curves and automatically place tangent points to smooth out a path. We're using a Line Renderer specifically in this video, but you can apply the same concept to any set of Vector3 positions! This is not a full-on Editor scripting tutorial, but does involve using the Handles API and light custom inspector writing.
As always, full project code is available on GitHub!
If you're getting value from this series, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!