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

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

91. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 79%]

...}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded));  /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded(...

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

92. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 79%]

...r completeHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id']) } private function onComplete():void { trace('haha') } } }package { import...

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

93. 加载的时候动画会卡 [ 78%]

...ont.json",type:Loader.ATLAS});         Laya.loader.load(imgArr,Handler.create(this,onAssetLoaded),Handler.create(this,onProgress,null,false));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,g...

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

94. 物理引擎显示旋转问题 [ 78%]

...     // 初始化物理引擎         engine = Matter.Engine.create({             enableSleeping: true         });         Matter.Engine.run(engine);         var render = LayaRender.create({             engine: engine,           ...

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

95. laya.resource.NativeRenderTexture2D_API3.0 [ 78%]

...W cpuMemory currentActive gpuMemory Methods _addReference _clearReference _create _end _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start clear destroy end event getData getIsReady gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recycle restore start dest...

来源: Laya3.0_api 发布时间: 20231115

96. 在Laya中使用Matter.js的最简示例 (JS) [ 78%]

..., Render = Matter.Render, World = Matter.World, Bodies = Matter.Bodies; // create an engine var engine = Engine.create(); // engine.world.gravity.y = 0;//关闭重力 // create a renderer var render = Render.create({ element: document.body, engine: engine }); // create two boxes and a ground var box...

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

97. 引擎自带的图集图片丢失问题 [ 78%]

.../comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

98. 2.3.0beta 各种bug [ 78%]

...  this._style === SpriteStyle.EMPTY && (this._style = SpriteStyle.create());             if( this._style == null){                 this._style = SpriteStyle.create()             }             return this._style;         }     core.js vivo下getJSON报错兼...

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

99. 如何加载.lh文件 [ 78%]

...载。或者传入地址数组。即可加载多个模型   Laya.loader.create([ {url:"资源目录/模型名字.lh"}, {url:"同上.lh"},  {url:"同上"},  {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

100. 报错,这不是个构造函数 "StartPage is not a constructor" [ 78%]

...这不是个构造函数 "StartPage is not a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample =...

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