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

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

91. 怎么获取对象的坐标 [ 86%]

...接 提交 2 个回复 Supermang42 赞同来自: cuixueying 、mayzhengxi Log 印出來應該會是以下這樣:   Vector3 {elements: Float32Array[3]}   改成這樣:    console.log( camera.transform.position.x ); console.log( camera.transform.position.y ); console.log( camera.transform.po...

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

92. 2.4 生命周期触发多次,连constructor都执行了两次 [ 85%]

...触发多次,连constructor都执行了两次 onAwake():void { console.log("onAwake"); } onStart():void { console.log("onStart"); } onEnable():void { console.log("onEnable"); } onDisable():void { console.log("onDisable"); } 附件 : --> 2019-12-09 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

93. Laya.loader.create中的progress回调好像不准确? [ 85%]

....ls", Laya.Handler.create(this, function () { //complete func console.log("Scene loaded"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya.Scene); Monica • 2018-03-21 11:01 @jinfawu...

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

94. 排坑:Laya.HttpRequest()无效 [ 85%]

...印到控制台。然而,什么也获取不到 下面是代码 console.log("开始测试"); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, pr...

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

95. websocket请教下,服务器发送过来的数据怎么获取 [ 85%]

...数据怎么获取 private openHandler(event: any = null): void { console.log(`平台 正确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ////////////////////////////////////////////////////////...

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

96. [LayaAir 2.0] 如何获取碰撞点坐标? [ 85%]

...数: onTriggerEnter(other: any, self: any, contact: any): void { console.log(other); //被碰撞的对象 console.log(self); //自己 console.log(contact); //连接点对象, contact.getHitInfo(); //这里有碰撞点的信息 }   官方文档不全,或者说没法说的那么仔细,如果...

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

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

...elta累计游戏玩了多长时间 下面是代码: 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("onshow|b...

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

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

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

99. 打包成APK后,POST请求会先去Download请求的地址 [ 85%]

... 项目打包成app后运行,使用XMLHttpRequest发出post请求后,log中出现了Download 我post的地址。然后有时候会卡住,大概5秒后会出现Download end:200的log,这之后才会真正把post请求发出去。有时候Download会直接超时报错。   网页版没问题...

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

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

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