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

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

101. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 88%]

碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) if(this.outHitInfo.distance < 0)speedX = speedZ = 0;  这个判断中的this.outHitInfo.distance 一直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel...

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

102. tiledmap有时尺寸不正确 [ 88%]

....onCompleteHandler)); } /** * 销毁当前地图 */ public destroy():void{ if (this._mTiledMap) this._mTiledMap.destroy(); if (this._mLevelConf) this._mLevelConf = null; this._mLoadState = ESceneLoadState.eLoadNull; } /** * 地图数据加载完成后的回调函数 */ private onCompleteHandler():vo...

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

103. 发光滤镜二次渲染bug [ 88%]

...台上移除后,设为了false; _setDisplay(value) {             if (!value) {                 if (this._cacheStyle) {                     this._cacheStyle.releaseContext();                     this._cacheStyle.releaseFilterCache();                     i...

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

104. 微信小游戏加载 BitmapFont 问题 [ 87%]

...p;& (ignoreCache=false); (errorCode===void 0)&& (errorCode=0); if (!errorCode){ var tempData; if (type==/*laya.net.Loader.JSON*/"json" || type==/*laya.net.Loader.ATLAS*/"atlas"){ tempData=MiniAdpter.getJson(data.data); }else if (type==/*laya.net.Loader.XML*/"xml"){ tempData=Utils.parseXM...

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

105. 输入设备-地图 [ 87%]

...amp; } // 将原始坐标转换为百度坐标 convertToBaiduCoord(data) { if (data.status == 0) { let position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } onError(e) { const Geolocation = Laya.Geolocation; if (e.code == Geolocat...

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

106. destroy节点后,报错 [ 87%]

... /* 从舞台移除模型对象 @param node 节点 */ base_remove(node){ if(node.numChildren<=0)return; console.log('移除',node.name); let obj; for(let i=node.numChildren-1;i>=0;i--){ obj= node.getChildAt(i); obj.destroy(); } }   或者 /* 从舞台移除模型对象 @param node 节点 */ b...

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

107. 其他引擎的Demo-Example_23 [ 87%]

....jpg"); Laya.stage.frameLoop(1, this, animate); })(); function animate() { if (tick > frequency) { tick = 0; // iterate through the dudes and update the positions var laser = new Sprite(); laser.loadImage("../../res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; var pos1; var pos...

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

108. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 87%]

... 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取的 所以右边...

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

109. 本地双击html如何打开laya项目? [ 87%]

... 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: qianyifei @qianyifei   您的问题:layaflash转换好的h5项目,在PC端和移动端双击html文件,打开项目MornUI的资源没有显示且报错。如何解决在PC端和移动端直接访问本地的html文件? ...

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

110. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 87%]

...de + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if (info.altitude != null) console.log('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',精确度:' + info.altitudeAccuracy + 'm') : '')); if (info.heading != null && !isNaN(info.heading)) c...

来源: Laya3.0_文档 发布时间: 20251010