每个字符的显示由两个三角形网格组成,一共六个顶点构成一个字符
0-左上
1-右上
2-右下
3-右下
4-左下
5-左上
UI有四个点,顶点有六个点,做好对应关系
效果如下:
detailText.GetOrAddComponent<TextSpacing>();
using UnityEngine;
using UnityEngine.UI;
using System.Collections.Generic;
internal class Line
{
//每行开始顶点索引
private int startVertexIndex;
public int StartVertexIndex
{
get
{
return startVertexIndex;
}
}
//每行结束顶点索引
private int endVertexIndex;
public int EndVertexIndex
{
get
{
return endVertexIndex;</