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

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

1401. tween complete 报错 以及如何判断对象正在缓动中 [ 47%]

...a.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Laya.Handler.create(this,this.changeColor,[letterText]), i * 100); 2017-11-22 0 0 分享 微博 QZONE 微信 liner1457387450 赞同来自: 恩恩,你写的这句是基本的用法,我想用tween API里complete()立即完成的方...

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

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

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

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

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

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

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

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

1407. vivo小游戏 · LayaAir3.4 · 引擎文档 · 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

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

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

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