大约有 698 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0046 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...
来源: Laya2.0_api 发布时间: 20190513
... 2; ufo.y = Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); } genSpine...
来源: Laya_社区 发布时间: 20220530
...l(t: Laya.Image) { Laya.Tween.to(t, { scaleX: 0.95, scaleY: 0.95 }, 66); t.once(Laya.Event.CLICK, t, () => Laya.SoundManager.playSound(Laya.SButton.globalClickAudio, 1)); } private scaleBig(t: Laya.Image) { Laya.Tween.to(t, { scaleX: 1, scaleY: 1 }, 66); } } 2018-10-20 0 2 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180731
...口重新赋值。 > 动态修改摄影机视口 ```typescript Laya.timer.once(3000,this,function ():void { //获取第一个摄影的视口 var viewport1:Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var ...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.WebGL); } else{ Laya.init(1024, 1024); } //等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#fffff...
来源: Laya_社区 发布时间: 20180224
...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...
来源: Laya2.0_api 发布时间: 20190513
...bedoTexture detailNormalScale detailNormalTexture detailTilingOffset emissionColor emissionIntensity emissionTexture enableEmission enableVertexColor gpuMemory id materialRenderMode normalTexture normalTextureScale obsolute occlusionTexture occlusionTextureStrength parallaxTexture parallaxTextureSca...
来源: Laya3.0_api 发布时间: 20231115
...(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroClick); let bbox = hero.getSelfBounds(); hero.hitArea = bbox; }); } 附件 : --> skeleton.zip 2018-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180905
...IDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, this, function () { console.log("SHOW"); dialog.show(); }); } })();http://layaair.ldc.layabox.com/demo/?UI_Dialog 直接到示例下跑一跑就知道了... @cuixueying demo.zip 2017-03-03 0 3 分享 微博 Q...
来源: Laya_社区 发布时间: 20170303
...riority = priority; } else { this.priority = 1; } if (progress) { progress.once = false; } let loadData: Array<any> = [ { url: resKey + "." + fgui.UIConfig.packageFileExtension, type: Laya.Loader.BUFFER } ] Laya.loader.load(loadData, Laya.Handler.create(this, this.onLoadPackageComplete, [resKe...
来源: Laya_社区 发布时间: 20191107