示例#1
0
        protected override void Generate(BaseStyle style)
        {
            var font = style as CoreUIFont;

            _textGenerator = new CoreUITextGenerator();
            _textGenerator.Init(font);
            _textGenerator.GenerateMeshData(_text, Color.white);
            Vertices  = _textGenerator.Vertices.ToList();
            Triangles = _textGenerator.Triangles.ToList();
            Uv        = _textGenerator.UV.ToList();
        }