大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 完整项目请见附件。 附件 : --> testvbox.rar 2017-07-25 添加...
来源: Laya_社区 发布时间: 20170725
...("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); ta...
来源: Laya_社区 发布时间: 20191206
...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var co...
来源: Laya2.0_文档 发布时间: 20210714
...: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使用await ...
来源: Laya_社区 发布时间: 20180124
...具调试库 2.2.1 最新 都是最新的 加载方式:Laya.loader.create 获取方式:scene = Laya.loader.getRes(path) as Scene; 2018-08-02 1 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以 2018-08-02 0 0 分享 微博 QZONE 微信 承 赞同来自: 真的可以么 老...
来源: Laya_社区 发布时间: 20180802
...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...
来源: Laya3.0_文档 发布时间: 20251010
...ya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=(...
来源: Laya_社区 发布时间: 20170626
...6大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); } drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; } clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRe...
来源: Laya_社区 发布时间: 20190315
... this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1)); this._btnTimeOutPlay.visible = true; this._btnPlaySound.visible = false; this.playBoo = false; return; } ...
来源: Laya_社区 发布时间: 20190919
...还有问题的话麻烦上传一个例子。 3D中的加载是Laya.loader.creat 2017-10-16 0 0 分享 微博 QZONE 微信 luwen6516 赞同来自: 记载路径是对的,应该是导出的问题,附件上传导出后的文件,麻烦给看下问题所在,困扰好几天了。该文件夹放在...
来源: Laya_社区 发布时间: 20171016