using UnityEngine; using UnityEngine.UI; using System.Collections; using System.Collections.Generic; public class TextPlus : Image { protected override void OnPopulateMesh(VertexHelper toFill) { //base.OnPopulateMesh(toFill); toFill.Clear(); toFill.AddVert(new Vector3(0, 0, 0), Color.white, new Vector2(0.5f, 0)); toFill.AddVert(new Vector3(0, 100, 0), Color.white, new Vector2(0.5f, 1)); toFill.AddVert(new Vector3(100, 100, 0), Color.white, new Vector2(1, 1)); toFill.AddVert(new Vector3(100, 0, 0), Color.white, new Vector2(1, 0)); toFill.AddTriangle(0,1,2); toFill.AddTriangle(0,2,3); } }