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

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

371. Laya.SoundManager.playSound播放声音不全 [ 64%]

...音频文件放在服务器端,在微信小游戏中,不管使不使用Loader来加载,都会有这个问题,把音频文件放到本地,再使用Loader来加载就可以了 如果能加载网络音频,能否告知怎么使用? //预加载声音 Laya.loader.load(BOX_OVER, Laya.Handler....

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

372. 自己创建的box作为tab,为啥没有点击事件啊? [ 64%]

自己创建的box作为tab,为啥没有点击事件啊? var Loader = laya.net.Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass...

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

373. js进度,进度,js场景进度效果 [ 64%]

...SCREEN_HORIZONTAL; //显示帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading...

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

374. HTMLIframeElement加载html网页的问题 [ 64%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml....

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

375. 预加载结束之后还是报lose skin [ 64%]

预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...

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

376. UI-Clip [ 64%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } showBg() { const Image =...

来源: Laya2.0_示例 发布时间: 20251130

377. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 64%]

...oadArr:Array = new Array; loadArr= [{url: "res/atlas/hall_new.json", type: Loader.ATLAS}, // {url: "res/atlas/help.json", type: Loader.ATLAS},  // {url: "res/atlas/shop.json", type: Loader.ATLAS}, // {url: "shmjAssets/扣牌文字背景.png", type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loa...

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

378. Laya.Video内存泄漏问题 [ 64%]

..., 800); Laya.Stat.show(0,0); var video_url = '带有音轨的视频'; Laya.loader.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_ur...

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

379. 加载.lh文件报错 [ 64%]

...ed at Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15158) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252) at EventHandler.__proto.runWith (laya.core.js:1126) at Loader.__proto.event (laya.core.js:882) at Loader.__proto.complete (laya.core.js:14965) at Loader.__proto.onLoaded (...

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

380. 头条小游戏二进制文件加载失败 [ 64%]

头条小游戏二进制文件加载失败 Laya.loader.load([         { url:"res/Bag.xml", type:Laya.Loader.BUFFER},         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},                   ], Laya.Handler.c...

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