大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)
...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
...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
...邀请: 与内容相关的链接 提交 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
...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
...源前加这样一句; var s:Sprite = Loader.getRes("路径"); if (s) { Loader.clearRes("路径"); s.destroy(); } 或者最好用的是再你的资源后加版本管理,版本管理你可以去官网看一下相关的文档。 付俊峰 • 2018-10-15 19:58 你好。我两次...
来源: Laya_社区 发布时间: 20180928
...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
... 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
...通过代码设定Clip相关的属性。 **运行示例效果:**  (图5)通过代码创建计数器  (图6) Clip的其他属性也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过...
来源: Laya2.0_文档 发布时间: 20210715
发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 发布时不勾选压缩混淆js的话,bundle.js里还是会有sourcemap信息的,勾选的话就没有了,那我去哪里找gulp uglify压缩混淆js过程生成的sourcemap信息呢?线上的游戏出现的报错我们希...
来源: Laya_社区 发布时间: 20190528
...rame); this.IndexFrame = dt.getTime(); if (this.VideoTexture != null) this.VideoTexture.element.requestVideoFrameCallback(fun); } this.VideoTexture.element.requestVideoFrameCallback(fun); 用此方法输出每帧渲...
来源: Laya_社区 发布时间: 20230807