大约有 13 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0027 秒)
关于graphics.drawLines批量画线出现的问题 使用graphics.drawLines批量画线时,线段的点集合混乱 例如[0, 0, 60, 0, 0, 10, 60, 10]画线,理想化为两条线 但是现在会出现三条线,分别为0, 0, 60, 0确定一条线, 60, 0, 0, 10确定一条线斜线, 0, 1...
来源: Laya_社区 发布时间: 20180410
报告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
...白部分的颜色问题 求指点3d射线碰撞和UI点击穿透的问题 graphics alpha 问题 我这样载入场景问题出现在哪呢?? 关于removechild、destory、clear的问题 问题状态 最新活动: 2017-02-03 10:51 浏览: 1434 关注: 2 人
来源: Laya_社区 发布时间: 20161201
RenderContext代码 调度问题 在laya画布上调用Laya.stage.graphics.drawLine画线 发现触发 RenderContext 里面的_drawLine方法 即使在鼠标松开后,还会不停的调用。这是不是正常现象? 附件 : --> 2017-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171127
...Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半部分 mask.graphics.drawLines(0, 0, [100, 150, 150, 150], "#ff0000", 200) // drawPoly在WebGl下遮罩又...
来源: Laya_社区 发布时间: 20180224
Sprite graphics的显示比例问题 function createCharacter(skin) { var character = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(...
来源: Laya_社区 发布时间: 20170828
[LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 Laya3试了十几个版本, 划线:graphics.drawLines 删除显示的数据中的数据时,不闪烁 graphics.drawCurves 删除显示的数据中的数据时,闪烁。 如果不删除,就不闪烁。 能解决吗? 我需要用d...
来源: Laya_社区 发布时间: 20241008
...代码造成。 __proto.createOneLine=function(startWord,lastWords,hasLine,graphic,recList){ var lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords...
来源: Laya_社区 发布时间: 20190801
laya.display.Sprite.graphics对象的旋转问题 我用laya.display.Sprite.graphics对象绘制了一条线,我想让其按线的初始点旋转 ,或者结束点为原点旋转。但是我用了graphics方法下的rotate做旋转是,无法rotate(90,0,0)旋转,设置rotate(90,1,0)...
来源: Laya_社区 发布时间: 20170424
... // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLCon...
来源: Laya_社区 发布时间: 20180728