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

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

2451. 调用拍照用input file可以么 [ 67%]

...调用图集下的小图 as的看不懂 调用动画结束on方法,报错this.zombieAnimator.on is not a function 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? 如何在PC端浏览器的调试面板调用滚动条? 请...

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

2452. Animation如何获取图集单帧实际宽高 [ 67%]

... 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

2453. 资源加载后的 回调 [ 67%]

...完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第二次就不加载了,所以就不...

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

2454. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 67%]

...拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速来体...

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

2455. 2d粒子旋转时大小也会随着改变 [ 67%]

... 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.addChild...

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

2456. 如何解析json文件并获取某对象值? [ 67%]

...e jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容,可我该...

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

2457. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 67%]

...方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); } private function graphicsImg():void { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } } } ...

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

2458. 怎么在api中找到 Laya.loader.load [ 67%]

...Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.com/api/index.html?categ...

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

2459. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 67%]

...OWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMouseUp);             Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp);   } private function onMouseDown(e:Event):void {             spe.startDrag(new Rectangle(0,0,800,800)); } 鼠标点击Sprite报...

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

2460. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 67%]

... - Out of bounds var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/...

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