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 July 21, 2026 05:37
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;