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

大约有 458 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

251. TimeLine调用destroy报错&执行完成后回到起点 [ 65%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } private function onComplete():void { trace("timeLine complete!!!!"); timeLine.pause(); timeLine.destroy(); // Laya.timer.frameOnce(10, this, dispose); } ...

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

252. destroy 报错 [ 65%]

destroy 报错 for(let i = 1; i<= this.createCountList[floor] ; i++)             {                 let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;                 if(floor1)                 {   ...

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

253. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 65%]

...CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._getTextur...

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

254. 动画加载不出 [ 65%]

...main函数里面 叔年心~厌世 • 2019-10-10 16:45 for(var i=0;i<this.moneyArr[rr].length;i++){ let sp=new Laya.Animation(); //添加金币 sp.loadAnimation('anis/money.ani'); sp.play(0,true); loadder.addChild(sp); loadder.name = 'money'; sp.pos(this.moneyArr[rr][i],-15); } 叔年心~厌...

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

255. 提示资源重复加载 [ 65%]

...ya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,...

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

256. 龙骨删除后内存不减少 [ 65%]

... templet = new Laya.Templet();         templet.on(Laya.Event.COMPLETE, this, () => {             this.skeleton = templet.buildArmature(1);                          this.pos1.addChild(this.skeleton);             this.skeleton.play("work", true);         });     ...

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

257. 添加或修改物理ChainCollider属性points时,报错 [ 65%]

...:Laya.ChainCollider=new Laya.ChainCollider(); chains.points="25,25,50,50"; this.sprite.addComponent(chains); 情况2:修改已有ChainCollider属性points时报错 在sprite下手动添加组建ChainCollider,使用代码更改属性points,则报错 var chains=this.sprite.getComponent(Laya.Chai...

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

258. 使用音频 · LayaAir3.0文档 · LAYABOX [ 65%]

...去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… Copyright ©Layabox 2022 all right reserved,powered by LayaAir E...

来源: Laya3.0_文档 发布时间: 20230718

259. MovieClip 给SWF播放的对象 [ 64%]

...才对啊? Sprite.as public function set transform(value:Matrix):void { this._tfChanged = false; var m:Matrix = this._transform || (this._transform = _createTransform()); value.copyTo(m); _setTransform(m); //设置transform时重置x,y if (value) { _x = value.tx; _y = value.ty; value.tx = value.ty...

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

260. 列表里的元素可以播放动画吗 [ 64%]

...  public function StorePage()         {             this.storelist.array = HostData.array //对list进行默认加载赋值             this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index            ...

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