• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0014 秒)

1. 3D文本内容是否可以清除 重新书写 [ 100%]

...line = "center";//文本相对于起点的位置 //设置文字,位置 cxt.fillText("-10000", 100, 50, 200);//有填充cxt.font="bold 60px 宋体"; let texture2D = new Laya.Texture2D(256, 256);   //=====================这里如果在填充新的文字 会有所有的文字信息 ==================...

来源: Laya_社区 发布时间: 20191211

2. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 77%]

...line = "center";//文本相对于起点的位置 //设置文字,位置 cxt.fillText("-" + hart.toString(), 100, 50, 200);//有填充cxt.font="bold 60px 宋体"; this.texture2D = new Laya.Texture2D(256, 256); this.texture2D.loadImageSource(this.cav); this.mat.renderMode = Laya.UnlitMaterial.RENDERMOD...

来源: Laya_社区 发布时间: 20200714

3. 分享,扩展Laya.Text组件实现简单的富文本 [ 72%]

...ctxFont, color, style.strokeColor, style.stroke, textAlgin); else graphics.fillText(_word, x, y, ctxFont, color, textAlgin); } //不再是每行绘制一次,而是每行根据关键字绘制多次 nowX += this.getTextWidth(line['text']); } } if (tCurrBitmapFont && tCurrBitmapFont.autoScale...

来源: Laya_社区 发布时间: 20180417