大约有 1,772 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1393) laya_api(90) Laya3.0_api(82) Laya2.0_api(72) Laya2.0_文档(59) Laya_示例(33) Laya2.0_示例(32) Laya3.0_文档(11)
...有texture的sprite进行处理,但是似乎不可以处理sprite上的graphics,例如我想做一个,用graphics绘制一个红色的圆,在着色器下,写上if(color.r>0.98)color.a=0.0; 可能出现的问题是,第一在添加graphics后,直接给出警告,图片消失,第二...
来源: Laya_社区 发布时间: 20250725
WebGL下透明度的问题 我在WebGL模式下的一个View里用Graphics画了黑色的底色 然后上面有一张图片 对View设置了alpha为0.9,这时graphics绘的底色透明度生效了,可以隐约看见背后的内容,但是图片完全没有透明值,请问下是什么原因...
来源: Laya_社区 发布时间: 20170302
...鼠标穿透问题 //画矩形 this.addLabel = new Sprite(); this.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; sp.addChild(this.addLabel); 仍然能够点击下面的按钮.这个要怎么...
来源: Laya_社区 发布时间: 20170726
...,点击则可正常关闭); 请指教! // 写法一 let g:Laya.Graphics = new Laya.Graphics(); g.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA;...
来源: Laya_社区 发布时间: 20170920
... let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = ...
来源: Laya2.0_示例 发布时间: 20251209
...Image 请问下,直接用new Image然后设置skin好还是用sprite的graphics.drawTexture绘制图片好? 哪种更耗性能 2018-02-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自:...
来源: Laya_社区 发布时间: 20180205
... var blue:Sprite = new Sprite(); blue.graphics.drawRect(0, 0, 500, 500, "#004080"); blue.pos(150, 150); blue.size(500, 500); blue.on("click", this, onClick); Laya.stage.addChild(b...
来源: Laya_社区 发布时间: 20161122
...nt.MOUSE_MOVE, this, mousemove); function mousemove(e) { drawLayer.graphics.drawCircle(e.target.mouseX,e.target.mouseY,20,"#ffffff") drawLayer.cacheAsBitmap; } 我的思路是每一次move都把对应的圆形区域绘制到一个容器上,这样一来drawcall就不会一直增加...
来源: Laya_社区 发布时间: 20160725
...No Frames VertexBuffer3DProperties | Methods | Constants Packagelaya.d3.graphicsClasspublic class VertexBuffer3DInheritanceVertexBuffer3D Buffer Object VertexBuffer3D 类用于创建顶点缓冲。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefine...
来源: Laya2.0_api 发布时间: 20190513
...sitionNormalColorTexture0Texture1SkinProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1SkinInheritanceVertexPositionNormalColorTexture0Texture1Skin ObjectImplements IVertex VertexPositionNormalColorTextureSkin 类用于创建位置、法线、...
来源: laya_api 发布时间: 20170929