Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Tutorial - How to Generate Colliders for Line Renderers

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Jun 21, 2022.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    266


    Learn how to dynamically generate a collider that follows your Line Renderer regardless of shape or size of your Line Renderer! In this tutorial I cover how to add a new Mesh Collider component to your Line Renderer GameObject and generate a mesh at runtime that matches your Line Renderer!

    It's easier than you might think!

    As always, all code from this video is available on GitHub!

    If you got value from this video, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!