Skip to content

Instantly share code, notes, and snippets.

View tumesh's full-sized avatar
💭
I may be slow to respond.

tumesh

💭
I may be slow to respond.
View GitHub Profile
@mathiassoeholm
mathiassoeholm / TubeRenderer.cs
Last active August 16, 2024 22:57
Similar to Unity's LineRenderer, but renders a cylindrical mesh.
// Author: Mathias Soeholm
// Date: 05/10/2016
// No license, do whatever you want with this script
using UnityEngine;
using UnityEngine.Serialization;
[ExecuteInEditMode]
public class TubeRenderer : MonoBehaviour
{
[SerializeField] Vector3[] _positions;