浏览代码

disable text rendering mesh cache

/main
fzhangtj 6 年前
当前提交
c6467982
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      Runtime/ui/painting/txt/mesh_generator.cs

6
Runtime/ui/painting/txt/mesh_generator.cs


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;
}
正在加载...
取消
保存