大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0068 秒)
...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
...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
...{ 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
... this, errorHandler); function openHandler(event){ //正确建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 console.log("接受"); } function closeHandler(e){ //关闭事件 console.log("关闭"); } function errorHandler(e){ //连接出错 console...
来源: Laya_社区 发布时间: 20180125
...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
... 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
...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
...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
...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
...ontName; this._defaultFont = fontName; console.log("小游戏字体加载成功->" + fontName);//成功走到这里了 但是UI没效果 } else { console.error("小游戏字体加载失败 字体路径=" + nativePath); ...
来源: Laya_社区 发布时间: 20240513