|
|
|
|
|
|
var subText = textBlob.text.Substring(textBlob.start, textBlob.end - textBlob.start); |
|
|
|
font.RequestCharactersInTexture(subText, fontSizeToLoad, style.UnityFontStyle); |
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
var vertices = new List<Vector3>(length * 4); |
|
|
|
var triangles = new List<int>(length * 6); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MeshMesh mesh = new MeshMesh(vertices, triangles, uv); |
|
|
|
_meshes[key] = new MeshInfo(key, mesh); |
|
|
|
// _meshes[key] = new MeshInfo(key, mesh);
|
|
|
|
|
|
|
|
return mesh; |
|
|
|
} |