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

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

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

... case 'left': default: break; } y += this._charSize.height; this._graphics.drawLine(x, y, x + lineWidth, y, this.underColor || this.color, 1); } /** * 取出关键字即所在的索引 * @param _text */ private parseType(_text: string) { let text = _text.replace(/(\\r\\n)|(\\n)/g, "") let typeKey = ...

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

112. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...nt) => { points.push(point.pos.x, point.pos.z); }); this._temp.graphics.drawLines(0, 0, points, "#00000030", 5); } }) this.hit.pos(pos.x, pos.y); } } 这样,鼠标点击的位置就是终点,角色会自动规避障碍到达终点,效果如动图3-3所示, (动图3-2) Copyright ©Laya...

来源: Laya3.0_文档 发布时间: 20251010