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

大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

61. 微信小游戏iOS平台下的Laya.timer.delta在设置Laya.timer.scale=0后会异常暴增 [ 85%]

....timer.delta累计游戏玩了多长时间 下面是代码: onHide():void{ console.log("onhide|aaa|" + Laya.timer.delta); Laya.timer.scale = 0; console.log("Laya.timer.scale=" + Laya.timer.scale); } onShow():void{ console.log("onshow|bbb|111|" + Laya.timer.delta); Laya.timer.scale = 1; console.log("...

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

62. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 85%]

...ion;         if(other.label === "heng"){             console.log("角度"+this.owner.rotation);             this.owner.rotation=180-n;             console.log("角度"+this.owner.rotation);         }          if(other.label === "shu"){...

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

63. Laya.HttpRequest 没有调用回调方法? [ 85%]

...("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); console.log("1111"); } function errorHandler(data){ console.log("2222"); } function completeHandler(e){ console.log("3333"); } 2018-08-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

64. js如何解析nettywebsocket发的二进制数据中的utf8汉字 [ 84%]

...Bytes(b); js: ws.onmessage = function (e) { var view=new DataView(e.data); console.log(view.byteLength);//7 console.log(view.getInt32(0));//3 console.log(view.getInt8(4),view.getInt8(5),view.getInt8(6));// -28 -67 -96 console.log(new Uint8Array(view.buffer));//Uint8Array(7) [0, 0, 0, 3, 228, 189, 16...

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

65. socket大型项目回调 [ 84%]

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

66. js执行once时如何改变执行域 [ 84%]

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

67. iOS wkWebView [ 84%]

...都没问题,求大神给解答下啊!     private connect(): void { console.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.E...

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

68. 循环复制了三次,scence打印出来也只有三个sprite,但是显示了五个 [ 84%]

...ock.clone(); aa.transform.localPositionX=i; aa.transform.localPositionY=0; console.log("白色方块位置"+aa.transform.localPositionX); console.log(aa.transform.localPositionY); console.log(aa.transform.localPositionZ); GameUI.instance.sences.addChild(aa); console.log(this.owner); 2019-11-11 添...

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

69. 图片添加点击事件 有的不生效 [ 84%]

...nFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 private onClickBtnBoy():void { console.log("click onClickBtnBoy"); } private onClickBtnFriend():void { console.log("click onClickBtnFriend"); } private onClickBtnShop():void { ...

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

70. 精灵添加名称 [ 84%]

...   sp=new Sprite();          sp.name = i.toString();         console.log(sp.name);         sp = project.drawsomething(20, 20+60*i, "#eeb9b3");         sp.on(Event.CLICK,this, onsp);         Laya.stage.addChild(sp);   }   private function onsp(e:Event){         ...

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