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

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

71. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...(以下代码来自“2D入门示例”): onEnable(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); }); //侦听物理按钮点...

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

72. 关于优化求助思路,运行时log 内存500M多,IPhone6还是卡死 [ 88%]

关于优化求助思路,运行时log 内存500M多,IPhone6还是卡死 点击发布一直处于正在处理请稍后界面  并且Iphone6 无法运行,7P,X没问题  求助优化思路,附件已上传 <!------------------------分割-----------------------> 打包问题解决...

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

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

74. 加载-错误处理和进度 [ 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_示例 发布时间: 20251130

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

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

77. 最新版本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

78. 关于多点触控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

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

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