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

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

1. 分包后, 资源加载问题 [ 100%]

...oading100..."); }   这个loading100.js: (function(window,document,Laya){ console.log("kk1") var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; console.log("kk2") var FrameAnimation=laya.display.FrameAnimation,Sprite=laya.display.Spr...

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

2. wkwebview使用异常 [ 98%]

...全部没有打印出来。 请问是用了wkwebview这种方式之后,console.log就无法打印了吗,那打印要用什么接口了? 另外我想问下,有没有wkwebview的使用文档啊?IOS能不能像Android一样使用真机在chrome浏览器上打断点调试,现在IOS上调试太...

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

3. socket无法连接服务器 [ 96%]

...         this.state_ = EConnectionState.eConnected;             console.log("conect to 127.0.0.1");         }         protected _onMessage(msg: any): void {             super._onMessage(msg);             console.log("receve msg : ");             console.log(msg); ...

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

4. socket大型项目回调 [ 96%]

...; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){console.log("----")}; console.info = console.log; console.warn = console.log; console.error = console.log; } this._message = new Message(); this._pack...

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

5. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 95%]

...om/question/13181官方Demo运行不起来 wx.onMessage(function(message){ console.log(message); if (message.type && message.type == "wxxx") { //通过接收主域的消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanvas.height = message...

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

6. 如何在游戏入口处获取对象的子对象 [ 94%]

...ed = function(){ this.pass = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } _proto.getLayer = function() { this.floor = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } console.log(this.map) return loadMap; })(Sprite);**游戏主入口** var Main = (fu...

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

7. socket.sent [ 93%]

...; } private openHandler(event: any = null): void { //正确建立连接; console.log("建立"+event);//没有写出 } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.log("收到"+msg);;//没有写出 console.log(msg);;//没有写出 } private closeHandler(e: ...

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

8. Laya.Pool.getItemByClass 闪退 [ 93%]

...s 闪退 var fish:CFFish = Laya.Pool.getItemByClass(type,CFFish) as CFFish console.log(fish) fish.visible = true fish.init(type) 调用init方法时候闪退,错误信息是 "fish.init is not a function" "TypeError: fish.init is not a function at Function.CFSprite.reusableFishWithType (file:///Use...

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

9. js执行once时如何改变执行域 [ 92%]

...sgCallBack = function () { this.kwxSocket.OnMessageCallBack=function(msg){ console.log("回调"+msg); var dataTemp = JSON.parse(msg); console.log(dataTemp.d); kwxGame.prototype.cardData = dataTemp.d; [b][i]Laya.timer.once(1000, this, this.onOncePiao); [/i][/b] } }在定时器中需要调用外部_pr...

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

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

...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