大约有 458 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0051 秒)
..., 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
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
...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
...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
...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
... 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
...: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
...去舞台焦点(切出游戏)的处理 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_文档 发布时间: 20241014
...才对啊? 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
... public function StorePage() { this.storelist.array = HostData.array //对list进行默认加载赋值 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index ...
来源: Laya_社区 发布时间: 20180503