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

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

181. shader预编译的bug [ 53%]

...efineNames);             }         }          console.log("预编译完成");     }   问题描述 问题1:代码里面有10个预编译shader有一个没编译,下图中标识了最后一个没编译出来的 问题2:预编译完成后,后面有的shader又给...

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

182. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 53%]

...me/__ ... :13718)     at http://127.0.0.1:37684/game/gamePage.html:152:5 console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:9 (anonymous) @ WAGame.js:4 a @ gamePage.html:1 window.onerror VM123:3 Thu May 24 2018 11:28:22 GMT+0800...

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

183. 真机调试 开启子域后 提示出现window is not defined [ 53%]

...工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; var pl = new Laya.Sprite() pl.graphics.dr...

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

184. 问一下Laya.ClassUtils.getInstance()怎么使用的,为啥我 直接传入一个.'类名' 竟然提示错误获取不到这个类 [ 53%]

...获取不到这个类 let view = Laya.ClassUtils.getInstance('MainPage'); console.log(view);(打印出来是null) //使用new 没有什么问题,可以正常显示, // var view = new MainPage(); // Laya.stage.addChild(view); 为啥呢,这个该是怎么使用的呢????????   2018-01-22 添加评论...

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

185. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 53%]

...ddChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playerHB.x < -100) { this.bb *= -1; } } 控制一直6像素来回移动 它就会出现颤抖 不管几像素都会 附件 : --> testL...

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

186. 在绘制扇形CD进度条时会在IOS上百分百出现绘制不完全的BUG(有必现Demo) [ 53%]

....skin = this.powerProgressWhiteSprite; this.isIncPower = true; return; } } console.log('===this.currentPower: ', this.currentPower); this.NodePowerProgressBar.graphics.clear(); //参数是否为true,都一样 this.NodePowerProgressBar.graphics.drawPie(100, 100, 100, 0, this.currentPower, ''); } 必...

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

187. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 53%]

... this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 Q...

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

188. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 53%]

...]     if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function to load this file."); } }            var innerResouMap=data[1];     Utils3D._createNodeByJson(this,jso...

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

189. 为什么new不出Rectangle的类,提示not defined [ 53%]

...a.maths.Rectangle;   引用 var abc = new Rectangle(10,10,10,10);     console.log(abc); 代码。 Rectangle {x: 10, y: 10, width: 10, height: 10} 控制台结果, 综上,你的引擎环境有问题。 2018-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

190. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...s.create(); this.scene3d.addChild(sp3); }); }) } printProgress(res: any) { console.log("加载进度" + JSON.stringify(res)); } } 这里介绍一下printProgress打印的内容,在小游戏调试器平台打我们导出的项目后,连接vivo官网提供的调试地址会打印如下日志: ...

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