大约有 489 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0090 秒)
...er.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video.loop =...
来源: Laya_社区 发布时间: 20170515
..., 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
...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
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
...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
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX...
来源: Laya3.0_文档 发布时间: 20251010
... public function StorePage() { this.storelist.array = HostData.array //对list进行默认加载赋值 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index ...
来源: Laya_社区 发布时间: 20180503