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

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

71. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 88%]

dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 var fooddata = []; for (var X = 0; X < res.data.length; X++) { var foodid = res.data[X]['n_food_id']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '....

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

72. 加载-错误处理和进度 [ 87%]

..., this, this.onError); } onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 onLoading(progress) { console.log("加载进度: " + progress); } onError(err) { console.log("加载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya { impor...

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

73. Native0.9.8 下打入了部分资源,dcc也打了,查看log时,发现把进去的资源还是 download而不是像文档上说的 found the file in the package: [ 87%]

Native0.9.8 下打入了部分资源,dcc也打了,查看log时,发现把进去的资源还是 download而不是像文档上说的 found the file in the package: 打包的资源是不是还需要从下载? 2017-09-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

74. QQ玩一玩上传项目后 黑屏问题 [ 87%]

...戏黑屏 日志如下: 08-18 12:03:07.569 26847-27206/? E/sava_native_log: level:1,code:1,info1:brick_log,info2:keepScreenOn CMSHOW_SC_CMD_STOP_GAME ,info3: 08-18 12:03:07.570 26847-27206/? E/sava_native_log: level:1,code:1,info1:brick_log,info2:user unset keepScreenOn,ignore the value,info3:   ...

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

75. 最新版本IDE,如何获取http返回的json数据 [ 87%]

...一直获取不到,请教一下什么问题 //注册按钮响应函数 Login.prototype.onButtonLogin = function (){ console.log ('按了登录按钮')  var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event....

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

76. 关于多点触控e.touches问题 [ 87%]

...ckerTouchDown);     function onCtrlMoveRockerTouchDown(e) {    console.log("onCtrlMoveRockerTouchDown()");    this.ctrlMoveRockerPosX = undefined;    this.ctrlMoveRockerPosY = undefined;    var tX, tY;    var ts = e.touches;    console.log(e.stageX + ":" + e.stageY);    if(ts) {   ...

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

77. list只能显示一个图片 [ 87%]

...item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.rende...

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

78. app 安卓版本 崩溃 [ 87%]

... - 知识达人 赞同来自: 是必现的吗?能否提供一个完整的log呢? 2017-12-11 0 10 分享 微博 QZONE 微信 lgs88 赞同来自: 是指logcat的输出吗,上传了 log.zip 2017-12-11 0 0 分享 微博 QZONE 微信 lgs88 赞同来自: 好 上传了 log.zip 2017-12-11 0 0 分享 ...

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

79. 获取位置信息 · LayaAir3.0文档 · LAYABOX [ 87%]

...(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSuccess(info: Laya.GeolocationInfo): void { console.log('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if (info.altitud...

来源: Laya3.0_文档 发布时间: 20230725

80. 各位大佬,帮我看看 tiledMap 中获取不到自定义属性 [ 86%]

...a = this.tiledMap.getLayerByIndex(3).getTileData(tileX, tileY); // console.log(data) // console.log(Laya.Keyboard.RIGHT) switch (e.keyCode) { //右边 case 39: { this.player.x += 16 break; } case 37: { //左边 this.player.x -= 16 break; } case 38: { //上 this.player.y -= 16  break; } case 40: { /...

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