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

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

2561. 请大家帮助优化一下这个抛物线的代码 [ 41%]

....loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onC...

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

2562. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 41%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 微信小游戏上线了,但凑不够需要的用户量咋办,有人有解决办法么 问题状态 最新活动: 2017-09-20 21:59 浏览: 987 关注: 2 人

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

2563. UI-ScrollBar [ 41%]

...eate(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { placeHScroller(); placeVScroller(); } private function placeHScroller():void { var hs:HScrollBar = new HScrollBar(); hs.skin = "../../../../res/ui/hscroll.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max...

来源: Laya_示例 发布时间: 20260303

2564. laya.d3.animation.AnimationTransform3D_API3.0 [ 41%]

... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/eve...

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

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

...图集 Laya.loader.load("res/atlas/bag.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private function onLoop():void { //更改texture的纹理...

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

2566. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 41%]

...          console.log('bitmapFont loading', progress);         }, null, false));   this.bitmapFont = new BitmapFont(); }   onFontLoaded() { // 设置空格的宽 this.bitmapFont.setSpaceWidth(10); // 注册位图字体 Laya.Text.registerBitmapFont(fontName, this.bitmapFont);   this.creat...

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

2567. 小游戏字体bug:使用位图字体,加载解析出错。使用ttf字体在小游戏中无效果 [ 41%]

...                                         }),null,Loader.XML) 这样都报错 2018-05-16 0 7 分享 微博 QZONE 微信 薛召 赞同来自: 加入xml解析后,部分机型还是会失败 2018-10-16 0 0 分享 微博 QZONE 微信 timothy19870826 赞同来自: 解决方...

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

2568. laya2.8.0IDE工具中打安卓包(LayaNative版本相同),无法加载游戏启动页 [ 41%]

...038@ s=0 l=0 I/LayaBox:  onerror UnknownError      assetsid old:  new:null I/LayaBox:  xhr.GET *l=http://happiness.joyleafs.com/ncapi/client/app*/index.json I/LayaBox: Download [  ]:http://happiness.joyleafs.com/ncapi/client/app*/index.json W/LayaBox: download error: timeout, dt=8,opttimeout=...

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

2569. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 41%]

...     return fs.readFileSync(path, "utf-8");     }     return null; } gulp.task('替换Laya前缀', function(){          var layaMaxUI_Path = workSpaceDir + "/src/ui/layaMaxUI.ts"     let fileContent = readFile(layaMaxUI_Path);     console.log("读取文件",fileContent) ...

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

2570. laya.device.motion.Accelerator_API3.0 [ 41%]

... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/eve...

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