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

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

101. 网络和格式-XML [ 82%]

...alue = "item aitem bsomethings..."; this.proessXML(xmlValueContainsError); console.log("\n"); this.proessXML(xmlValue); } // 使用xml proessXML(source) { const Utils = Laya.Utils; let xml; try { xml = Utils.parseXMLFromString(source); } catch (e) { console.log(e.massage); return; } this.printDirect...

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

102. layabox加载fairygui发布的二进制文件报错 [ 82%]

...fo,content){ var url=resInfo.url; //输出//////////////////////////////// console.log("url:"+url); content==null?console.log("content null"):console.log("content not null"); //输出//////////////////////////////// if (content==null){ var errorCount=this._failRes[url] || 0; if (errorCount < this...

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

103. 动态阴影被切割了?为啥没有显示完成的阴影 [ 81%]

...{ var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addTestBox() { var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addFirstBox() { var box = scene.addChild(new myCube(1, 1, 0.5, colorCalc(), 0))...

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

104. socket与node服务端连不上?按照官方案例 [ 81%]

... this, errorHandler); function openHandler(event){ //正确建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 console.log("接受"); } function closeHandler(e){ //关闭事件 console.log("关闭"); } function errorHandler(e){ //连接出错 console...

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

105. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 81%]

...libs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) {   console 窗口报错如下: ------------------------------------------ WAGame.js:3 gameThirdScriptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property ...

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

106. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 81%]

... files.length; i++) {         let fileUrl = files;         console.log("加载文件测试", i, fileUrl);         MiniFileMgr.readFile(fileUrl, "utf8", Laya.Handler.create(this, function() {             console.log("加载文件测试1", i, fileUrl);       ...

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

107. 加载-加载序列 [ 81%]

...setLoaded), null, null, 2, false); })(); function onAssetLoaded(texture) { console.log(texture.source); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } })();module laya { import Texture = Laya.Texture; import Handler = Laya.Handle...

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

108. 骨骼动画-适配版Spine [ 81%]

...is.skeleton.on(Event.STOPPED, this, this.play); this.play(); } onError() { console.log("parse error"); } play() { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(this.index, false, true); } } new SpineBinary;import Browser = Laya.Brow...

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

109. 我竟然被射线检测这个小功能给难了一天了 [ 81%]

...wner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChildByName("Main Camera") as Laya.Sprite3D).transform.position) } onStart(): void {     Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya....

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

110. [LayaAir3]支付宝小游戏使用TTF字体异常 [ 81%]

...ontName;             this._defaultFont = fontName;             console.log("小游戏字体加载成功->" + fontName);//成功走到这里了 但是UI没效果         } else {             console.error("小游戏字体加载失败 字体路径=" + nativePath);         ...

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