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

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

161. 这样一个ui怎么做 [ 56%]

...NE 微信 Supermang42 赞同来自: 監聽箭頭 MOUSE_DOWN,持續呼叫 function 讓值不斷更換。 2018-08-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 owen7song 相关问题 两个对象new了一个相同的对象,调用...

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

162. 怎么循环数组的时候给他定时第一个执行完在执行下一个 [ 56%]

...,效果执行完,弹窗无法关闭 执行回调函数时报is not a function 能不能用定时器根据时间改变节点Pie的起始角度? 关闭指定定时器timer 问题状态 最新活动: 2019-05-24 13:58 浏览: 558 关注: 3 人 1557817990用户 • 2019-05-20 14:44 我就是想让...

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

163. 为了降低drawcall,升级了2.2版本,微信发布后报错 [ 56%]

...property '_geometry' of undefined;at requestAnimationFrame callback function TypeError: Cannot read property '_geometry' of undefined at SubMeshDynamicBatch._render (game.js:13608:39) at SubMeshRenderElement._render (game.js:19109:27) at RenderQueue._render (game.js:34450:26) at S...

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

164. LAYAAIR加载SWF无线循环 [ 56%]

...             _Sheep=createMovieClip(SheepSWFPath);    private function createMovieClip(path:String):MovieClip         {             var mc:MovieClip = new MovieClip();                      mc.load(path,false);        mc.play(0,false);    ...

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

165. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 56%]

...te(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load...

来源: Laya2.0_文档 发布时间: 20210714

166. 关于资源回收的问题 [ 55%]

...该是你没有移除干净,可以参考下以下的销毁方式 private function onDesVideo():void { Laya.timer.clear(this, loop); video.pause(); video.destroy(true); video=null; }小提示:video.pause,1.7.4beta版本h还需要手动暂停,1.7.4beta以后的版本将会将pause加到destory...

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

167. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 55%]

...rivate var url_img:String = "res/";                    public function WWJ_Main()          {             Laya.init(stageWidth, stageHeight);                          Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage....

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

168. HttpRequest在网页上和APP上表现不一致 [ 55%]

...aya.HttpRequest();     hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeo...

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

169. 关于大量图片加载绘制后的内存暴增的疑问 [ 55%]

...对象容器 private var texture:Texture;//预加载图片的纹理 public function Demo() { Laya.init(800,1000,WebGL); Stat.show(); Laya.stage.bgColor="#EEFFCC"; //预加载图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():v...

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

170. Array buffer allocation failed [ 55%]

... at e.i._resizeBuffer (https://awp-assets.meituan.net ... :24224)     at Function.e.getAMesh (https://awp-assets.meituan.net ... :29394)     at t.a.flush (https://awp-assets.meituan.net ... :29650)     at a.h.render (https://awp-assets.meituan.net ... :25650)     at a.h._loop (https://awp-as...

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