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

大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0051 秒)

1401. VBOX动态增加的元素没有自动布局 [ 47%]

....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

1402. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 47%]

...("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

1403. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 47%]

...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

1404. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 47%]

...: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使用await ...

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

1405. 3d项目发布到微信工具真机预览无法加载场景ls文件??? [ 47%]

...具调试库 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

1406. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...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

1407. list里面可以加入多个view吗? [ 47%]

...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

1408. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 47%]

...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

1409. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 47%]

... 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

1410. "加载模型时出现LoaderManager:unknown file(E:/layaprj/layascene/bin/null path) extension with: null." [ 47%]

...还有问题的话麻烦上传一个例子。 3D中的加载是Laya.loader.creat 2017-10-16 0 0 分享 微博 QZONE 微信 luwen6516 赞同来自: 记载路径是对的,应该是导出的问题,附件上传导出后的文件,麻烦给看下问题所在,困扰好几天了。该文件夹放在...

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