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

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)

971. Sprite loadImage 的时候出现多张图片同时显示 [ 88%]

Sprite loadImage 的时候出现多张图片同时显示 this.img.graphics.clear(); var imgUrl = (this.flag = !this.flag)? this.imgUrl1 :this.imgUrl2; this.img.loadImage(imgUrl,100,50); 简单的点击sprite切换图片,结果会出现两张图片同时显示的情况 附件 : --> 2018-04-04 添...

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

972. AS版本生成的js中出现了this.Buffer() [ 88%]

AS版本生成的js中出现了this.Buffer() 源代码:var voiceBase64:* = new Buffer(voice); js文件:new /*no*/ this.Buffer(voice);   我每次还需要手动去替换掉·· 2018-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

973. list 下 生成图片模糊 [ 88%]

....7 版的 一个list }, _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。...

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

974. 求教 颜色滤镜和混合模式使用 [ 88%]

...没有办法实现, 下面是之前flash代码   bitmapData.applyFilter(this._mask, this._mask.rect, zeroPoint, this._colorFilter);   sprite.copyPixels(this._base, this._base.rect, zeroPoint);   sprite.draw(bitmapData, null, null, this._maskBlendMode); 2016-07-30 添加评论 免费帖 --> 分...

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

975. 网络和格式-XML [ 88%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { let xmlValueContainsError = "item aitem bsomethis..."; let xmlValue = "item aitem bsomethings..."; this.proessXML(xmlValueContainsError); console.log("\n"); this.proessXML(xmlValue); } // 使用xml p...

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

976. 为什么无法使用 meshRender.sharedMaterials 设置材质 [ 88%]

...无法使用 meshRender.sharedMaterials 设置材质 // 可以正常asign this.object.meshRender.sharedMaterial = this.material; // 沒有效果 this.object.meshRender.sharedMaterials[0] = this.material; this.object.meshRender.sharedMaterials[1] = this.material;  这个物体在Unity的属性如附...

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

977. Uncaught Error: Animation:this playName has exist with another clip. [ 88%]

Uncaught Error: Animation:this playName has exist with another clip. 这是什么bug? 附件 : --> 2019-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这不是说动画重名了吗...

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

978. 进度条滚动无效【已解决】 [ 88%]

...用无效,就是不滚动,一直在0的位置 Laya.timer.frameLoop(1,this,onLoop); private function onLoop():void { progress++; //最高100%进度 if(progress>=100) { progress=100; this.tips.text="游戏加载完毕,即将进入游戏..." this.panel.visible=false; this.gobtn.visible=true; }...

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

979. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 88%]

...个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.posit...

来源: Laya2.0_文档 发布时间: 20210714

980. iframe嵌入laya做的html5,手机端浏览时iframe处不响应触摸滑动? [ 88%]

...是一片空白。代码如下,希望可以得到您的回复,谢谢~ this.iframe = Laya.Browser.document.createElement("iframe"); this.iframe.style.position ="absolute";//设置布局定位。这个不能少。 this.iframe.style.zIndex = 1000;//设置层级 this.iframe.style...

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