Skip to content

Instantly share code, notes, and snippets.

View worthingtonjg's full-sized avatar

Jon Worthington worthingtonjg

View GitHub Profile
@hasanbayatme
hasanbayatme / DrawLine.cs
Last active August 8, 2024 22:48
Unity (Game Engine) Line Drawing with mouse using Line Renderer. Useful for painting, drawing 2d physics lines.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawLine : MonoBehaviour
{
[SerializeField]
protected LineRenderer m_LineRenderer;
[SerializeField]