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

大约有 14 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0032 秒)

1. 报告bug: graphics.drawCircle在layaair调试时,改变外框尺寸,半径未能自适应调整 [ 100%]

报告bug: graphics.drawCircle在layaair调试时,改变外框尺寸,半径未能自适应调整 版本编号1.7.17 //初始化Laya引擎 Laya.init(720, 1280, Laya.WebGL); //stage水平对齐方式 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; //stage竖直对齐方式 Laya.stage.alignV = Laya.S...

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

2. 如何用Tween 给graphics.drawLine 设置缓动 [ 97%]

如何用Tween 给graphics.drawLine 设置缓动 就是可以显示线条画出来的过程 2017-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果显示线条画出来的过程...

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

3. 如何清除graphics绘制的矢量图 [ 95%]

如何清除graphics绘制的矢量图             let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphic...

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

4. Graphics.drawLines设置x轴y轴的初始位置的参数失效 [ 95%]

Graphics.drawLines设置x轴y轴的初始位置的参数失效 如下代码所示,将drawLines的第一二个参数换成任意数字,画出的折线位置不会有任何变动(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { //初始...

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

5. 如何使用graphics绘画虚线 [ 86%]

如何使用graphics绘画虚线 如何使用graphics绘画虚线?类似 CanvasRenderingContext2D.setLineDash() 那种。如没有实现,能否把这个方法加上? 2017-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

6. 加载TiledMap 不显示 [ 85%]

...        this.sprite = new Sprite();         this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color);         this.sprite.graphics.drawLine(0, 0, radiusX, radiusY, color);         this.sprite.graphics.drawLine(-radiusX, radiusY, 0, radiusY * 2, c...

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

7. laya绘制图形进行缩放的时候有问题 [ 85%]

... 2018-02-11 15:44 public static SymbolRoot(sp: Laya.Sprite, cfg: any) { sp.graphics.drawCircle(0, 0, 20, "#ffffff", "#000000", 3); sp.graphics.drawLine(-20, -20, 20, 20, "#000000", 3); } public static SymbolSeq(sp: Laya.Sprite, cfg: any) { sp.graphics.drawLine(-20, 0, 2...

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

8. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 85%]

...d { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 this.sp.graphics.drawCurves(352, 58, [0, 0, 19, -100,...

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

9. batch draw 减少draw call [ 84%]

...l里面呢?   sp = new Sprite(); Laya.stage.addChild(sp);  //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...

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

10. layaAir真的没办法做涂鸦板? [ 81%]

layaAir真的没办法做涂鸦板? 我用sp.graphics.drawLines方法做了个鼠标画线,确实是连续画的时间长了,就会很卡,在平板上尤其明显,画两三条线之后就不行了,没办法解决吗?用JS原生的画线方法怎么能加载我的内容上呢,我是...

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