Skip to content

Instantly share code, notes, and snippets.

@CGPala
CGPala / UILineRenderer.cs
Created November 19, 2016 12:29
Unity simple UI line renderer
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
public class UILineRenderer : Graphic
{
[SerializeField] Texture m_Texture;
[SerializeField] Rect m_UVRect = new Rect(0f, 0f, 1f, 1f);