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

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

301. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1Tangent [ 84%]

...ionNormalColorTexture0Texture1TangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1TangentInheritanceVertexPositionNormalColorTexture0Texture1Tangent ObjectImplements IVertex VertexPositionNormalColorTextureTangent 类用于创建位置、...

来源: laya_api 发布时间: 20170929

302. new Laya.Sprite();绘制图形以后,怎么删除释放资源? [ 84%]

...除释放资源? var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawPie(0,0,50,0,160,"#122D3E");   绘制完成以后,我怎么从舞台删除绘制的图形和释放Sprite相关资源? clear和removeChild???具体怎么操作?   2017-11-19 添加评论 免费帖 --...

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

303. 小图集内存较大,且不能清理掉 [ 84%]

...图集能清除掉么? private function onLoad(tex:Texture):void { var g:Graphics = new Graphics(); g.drawTexture(tex, 0, 0); _s.graphics = g;        Laya.timer.once(2000, this, onClear); } private function onClear():void { _s.graphics.clear(); _s.destroy(true); _s.removeSelf(); _s...

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

304. layaAir真的没办法做涂鸦板? [ 84%]

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

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

305. laya.d3.graphics.VertexPositionNormalTexture0Texture1Tangent [ 84%]

...PositionNormalTexture0Texture1TangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1TangentInheritanceVertexPositionNormalTexture0Texture1Tangent ObjectImplements IVertex VertexPositionNormalTextureTangent 类用于创建位置、法线、纹理...

来源: laya_api 发布时间: 20170929

306. WebGL下透明度的问题 [ 84%]

WebGL下透明度的问题 我在WebGL模式下的一个View里用Graphics画了黑色的底色 然后上面有一张图片 对View设置了alpha为0.9,这时graphics绘的底色透明度生效了,可以隐约看见背后的内容,但是图片完全没有透明值,请问下是什么原因...

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

307. 半透明的矩形鼠标穿透问题 [ 84%]

...鼠标穿透问题 //画矩形 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

308. hitArea用法问题 [ 84%]

...,点击则可正常关闭); 请指教!  // 写法一 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

309. Sprite-切换纹理 [ 84%]

... 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_示例 发布时间: 20240930

310. 关于矢量图跟Image [ 84%]

...Image 请问下,直接用new Image然后设置skin好还是用sprite的graphics.drawTexture绘制图片好? 哪种更耗性能 2018-02-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自:...

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