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

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

891. 释放资源与阴影冲突的问题 [ 56%]

...ResourcesMap; for (let k in idResourcesMap) { let res = idResourcesMap[k]; if (!(res instanceof RenderTexture) && !res.lock && res._referenceCount === 0) res.destroy(); } } 2019-10-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

892. native下js报错的监听 [ 56%]

...ction(msg:String, url:String, line:String, column:String, detail:*):void { if (erralert++ < 5 && detail) alert("出错啦,请把此信息截图给研发商\n" + msg + "\n" + detail.stack); }引擎提供了开关:Laya.alertGlobalError  为true时开启报错弹窗 2018-09-08 0 1 分...

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

893. 请教个问题:如何重绘sharedCanvas [ 56%]

...以要通知开放数据域去重绘 sharedCanvas” 我的代码如下: if (message.cmd == "render") { console.log("重置共享数据域"); let sharedCanvas = Laya.Browser.window.sharedCanvas; sharedCanvas.width = 0; sharedCanvas.height = 0; // let tempMatrix = message.matrix; // let matrix = ne...

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

894. [bug]设备属性错误 [ 56%]

...你可以把init下的参数设置成动态的,譬如,Laya.init(wd,ht) if(Browser.onPc){ wd=xxx,ht=xxx}

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

895. 射线检测-放置物体 [ 56%]

...esh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshColli...

来源: Laya_示例 发布时间: 20260303

896. Stage中删除不掉Scene [ 56%]

...tage.on(Laya.Event.MOUSE_UP, this, function () {     var str = "";     if (!hit.sprite3D) {         str = "点击选取的几何体";     } else {         Laya.stage.removeChild(scene3D);     }     console.log(str); });     每次删除scene3D后又被添加进来了。不知道...

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

897. 1.7.7 bate 没有办法判断接口类吗 用is [ 56%]

1.7.7 bate 没有办法判断接口类吗 用is if(configMgrClass is IFactory) 2017-07-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 可以判断,还是上面的写法,你有遇...

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

898. gps定位获取当前城市名字 [ 56%]

gps定位获取当前城市名字 if(Geolocation.supported) { Geolocation.enableHighAccuracy = true; Geolocation.getCurrentPosition(Handler.create(this,function(pos):void { alert("pos:"+pos.coords.longitude+","+pos.coords.latitude); }),Handler.create(this,function(error):void { switch (error.code) ...

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

899. drawTexture的matrix参数是怎么用的 [ 56%]

...(Math.PI / 2 * i)) tileIndices.forEach((idxOnSource, idxOnTilemap) => { if (!idxOnSource) return const position = tilemap.getTilePositionByIndex(idxOnTilemap) const tileTexture = getTexture(idxOnSource) const matrix = matrices[(tileRotates && tileRotates[idxOnTilemap]) || 0] this.graphics...

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

900. 骨灰级的bug [ 56%]

...会满足,想手动控制跳帧,无法跳 currentAni是Skeleton动画 if(this.currentAni.index==this.currentAni.total-1) {     } 附件 : --> 2019-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aa...

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