Skip to content

Instantly share code, notes, and snippets.

@Autumn1992
Autumn1992 / UITextUnderLine
Last active July 11, 2018 09:10
Unity UGUI UITextUnderLinen Effect
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[ExecuteInEditMode]
[RequireComponent(typeof(Text))]
public class UnderLine : BaseMeshEffect
{
private static readonly List<UIVertex> verts = new List<UIVertex>();
private static readonly UIVertex[] data = new UIVertex[4];