Search Unity

Tutorial - Automatic Line Smoothing with Bezier Curves

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Oct 19, 2021.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    150


    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 Inspector! 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!
     
unityunity