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

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

71. 小游戏启用版本管理本地资源加载报错解决方案 [ 65%]

...(MiniLoader._fileTypeArr.indexOf(urlType)!=-1)){ MiniAdpter.EnvConfig.load.call(this,[b]url[/b],type,cache,group,ignoreCache); }else { if(MiniAdpter.isZiYu && !MiniFileMgr.ziyuFileData[url=){]){ url=URL.formatURL(url); } if(MiniAdpter.isZiYu && MiniFileMgr.ziyuFileData[/url][url=){])...

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

72. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 65%]

...n(_super){ function MainSceneUI(){ this.Btn_Task=null; MainSceneUI.__super.call(this); } CLASS$(MainSceneUI,'ui.MainSceneUI',_super); var __proto__=MainSceneUI.prototype; __proto__.createChildren=function(){ _super.prototype.createChildren.call(this); this.loadScene("MainScene"); } return ...

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

73. viewport 的用法 [ 65%]

...le = Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new Sprite();...

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

74. 用npm的protobuf导出的ts代码。然后用import { } from "" 运行到这里没反应,不继续执行,也不报错。 [ 63%]

...../libs/protobuf/area.js"; export function testProto():void { console.log("call testProto"); var ProtobufUtil = com.bee.protobuf; let msg = ProtobufUtil.ProtoArea.create(); let buffer = ProtobufUtil.ProtoArea.encode(msg).finish(); let decode = ProtobufUtil.ProtoArea.decode(buffer); console.log("test...

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

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

...       {                 var params:String = ExternalInterface.call("getParams");                   if (params.indexOf("?")!=-1)                 {                     var ary:Array = params.split("?");                     var str:String=ary[ 1 ];    ...

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

76. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 62%]

...(function () { /** * 游戏入口 */ function RunGame(){ RunGame.__super.call(this); this.init(); } //RunGame 是一个显示对象 继承此 Sprite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = function(){ c...

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

77. 关于二次开发 [ 61%]

...回到数据,请问我js要怎么写。官方文档我看过了,使用call方法貌似只能发送数据到java,java并不能响应后返回数据呀 2018-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复...

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

78. 1.7.10 weakmap [ 61%]

...eakmap 更新引擎前,经常报"The play() request was interrupted by a call to pause()."的错,这个错在360极速浏览器上有极大几率卡死,其他浏览器没有问题。引擎更新成1.7.10后,把Laya.SoundManager.useAudioMusic设成false可以避免声音导致的卡死,但...

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

79. native接入渠道问题 [ 61%]

...ava.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 你们封装的那几个login等是在哪个线程中,调用第三方sdk老是报这个,各种改写都不行 2018-03-30 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

80. 报错说最大堆栈大小超过 [ 61%]

...接 提交 1 个回复 lambun 赞同来自: Uncaught RangeError: Maximum call stack size exceeded 2018-02-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lambun 相关问题 ide 2.4 layaair2-cmd 编译报错 laya2.0加载3d场景报错...

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