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

大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)

1371. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 44%]

...s:16581)   laya.core.js:15946里面的代码是:Texture._create方法中if (bitmap.width && (x+width)> bitmap.width) 里的bitmap为null,往上看可能是source为null 但是仍然无法判断到是我的场景UI的问题还是代码的问题 2020-02-01 添加评论 免费帖 --> ...

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

1372. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 44%]

...834 关注: 2 人 A梁马勇 • 2018-10-10 16:38 加上这句就可以了 if (!sharedCanvas.hasOwnProperty('_addReference')) { sharedCanvas['_addReference'] = () => { } } Laya_Aaron • 2018-10-10 20:43 要做一个判断,他存在再执行,也就是楼上说的。 扬了二正 • 2018-10-1...

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

1373. 关于微信小游戏渲染子域图的问题 [ 44%]

...邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpenDataViewer.postMsg({command:"open", curScore:GameModel.getInstance().money, data:{windowWidth:Laya.stage.width, windowHeight:Laya.stage.height}}); } 2018-12-04 0 0 分享 微博 QZONE 微信 谢...

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

1374. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 44%]

...useMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.pos1.x,this.pos1.y,"#ff0000",5); this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; } } __mouseUp(e:Ev...

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

1375. image loadimage 加载网络图片BUG [ 44%]

...源前加这样一句; var s:Sprite = Loader.getRes("路径"); if (s) { Loader.clearRes("路径"); s.destroy(); } 或者最好用的是再你的资源后加版本管理,版本管理你可以去官网看一下相关的文档。 付俊峰 • 2018-10-15 19:58 你好。我两次...

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

1376. 用raycast选取实体,hitresult始终是false [ 44%]

...n, Laya.Color.BLUE, Laya.Color.RED); this.lineSprite.addChild(lineSprite); if (outHitResult.succeeded) { //删除碰撞到的物体 // this.text.text = "碰撞到了" + outHitResult.collider.owner.name; console.log("碰撞到物体!!" + outHitResult.collider.owner.name) } 附件 : --> 射线选...

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

1377. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 44%]

... nodes (container objects or display objects without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, `false` means it is not penetrable. * When penetrable, the engine will no longer detect this object and will r...

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

1378. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...通过代码设定Clip相关的属性。 **运行示例效果:** ​ ![1](gif/1.gif) ​ (图5)通过代码创建计数器 ​ ![1](img/5.png) ​ (图6) ​ Clip的其他属性也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过...

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

1379. 发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 [ 44%]

发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 发布时不勾选压缩混淆js的话,bundle.js里还是会有sourcemap信息的,勾选的话就没有了,那我去哪里找gulp uglify压缩混淆js过程生成的sourcemap信息呢?线上的游戏出现的报错我们希...

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

1380. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 44%]

...rame);             this.IndexFrame = dt.getTime();             if (this.VideoTexture != null)                 this.VideoTexture.element.requestVideoFrameCallback(fun);         }         this.VideoTexture.element.requestVideoFrameCallback(fun); 用此方法输出每帧渲...

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