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

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

221. 一个LayaAir moveout target 设计上的疑问? [ 78%]

...       Laya.stage.addChild(sp[j + i * 10]);         sp[j + i * 10].graphics.drawRect(0, 0, 50, 50, "black");         sp[j + i * 10].size(50, 50);         sp[j + i * 10].pos(i * 60, j * 60);         sp[j + i * 10].on(Laya.Event.MOUSE_OVER, this, over);         sp[j + i * 10].on...

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

222. Laya对骨骼插槽添加滤镜 [ 77%]

...的渲染中,会遍历所有的插槽,调用BoneSlot中的draw方法(graphics.drawTexture和graphics.drawSkin) ,将插槽中的纹理通过封装cmd的形式通过方法加入_cmd的队列中,通过_renderAll遍历执行所有_cmd队列中的指令进行渲染从而更新画面 。可以...

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

223. 计时器-延迟执行 [ 77%]

...00, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } onDecreaseAlpha1(e) { const Event = Laya.Event; //移除鼠标单...

来源: Laya2.0_示例 发布时间: 20240930

224. Sprite.getGraphicBounds的问题 [ 77%]

Sprite.getGraphicBounds的问题 看4张图就知道了,图片是有加载显示成功,但是在handler里面返回的参数为undefined,getGraphicBounds内容始终为0 附件 : --> 2018-11-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

225. HTMLDivElement下划线换行时,下划线颜色错误 [ 77%]

...代码造成。 __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

226. 图片已加载,却无法显示图片, [ 77%]

...,却无法显示图片, 使用loadIMage可以显示图片,但使用graphics.drawTexture()却无法显示图片(图片已经预加载了),求解,是最新的layaair引擎不支持graphics.drawTexture()的方法了? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

227. 怎么修改sprite的颜色 [ 77%]

...接 提交 1 个回复 Laya_XS 赞同来自: sprite的示例,然后调用graphics去画个颜色,sprite不能直接设置颜色值 2018-04-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jcd404552157 相关问题 求问shader中的...

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

228. 混合模式-Lighter [ 76%]

...tion onTweenComplete() { evalBgColor(); } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChanne...

来源: Laya_示例 发布时间: 20240930

229. 混合模式-Lighter [ 76%]

...esult; } onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g...

来源: Laya2.0_示例 发布时间: 20240930

230. 怎么降低CurMen这个数值? [ 76%]

...回复被折叠 要回复问题请先登录 发起人 vincent 相关问题 graphics绘制扇形,角度设置一定数值时候,遮罩形状不对 Vsilder 旋转180%后 数值 方向不能改变吗,还有滑动的方向也是反的 通过面部骨骼缩放来实现变脸,引擎怎么设置某...

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