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

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

71. 附加脚本的使用问题 [ 88%]

...使用问题 class ScaleButton {     constructor() {         console.log("加载ScaleButton");     }     private _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner(): laya.display...

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

72. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 88%]

...layaair可以运行的代码 Game.as   package {     import com.legend.log.Logger;     import com.legend.manager.AppManager;       import flash.display.Sprite;     import flash.events.Event;     import flash.external.ExternalInterface;     import flash.net.URLVariables;     import fl...

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

73. 事件管理 · LayaAir3.4 · 引擎文档 · 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

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

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

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

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

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

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

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

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

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