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

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

231. UI-Input [ 74%]

...es/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

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

232. 创建图集的问题 [ 74%]

...中: //加载图集 asset.push( { url: NVHAIDAOMAO_JSON_URL, type: Laya.Loader.ATLAS }, { url: WAR_JSON_URL, type: Laya.Loader.ATLAS } ); Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(v...

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

233. tween 的 update 怎么是回调一次!!! [ 74%]

...有变化,怎么回事啊? 网络send 不回调?什么情况? Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 http 请求 once 的 回调参数,如何传递和接收? Laya.Handler.create 加载图片...

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

234. Laya.loader.load 如何同时加载图片数组以及json图集 [ 74%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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

235. 粒子中引用的图片能合图吗 [ 74%]

...Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } fun...

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

236. 微信小游戏,动态加载资源很慢 [ 74%]

...nventional/NewBuilds.lh", "./LayaScene_111/Conventional/smoke.lh"];  Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是...

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

237. UI-ProgressBar [ 74%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["../../res/ui/progressBar.png", "../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progres...

来源: Laya_示例 发布时间: 20240930

238. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 74%]

Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/some...

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

239. UI-ComboBox [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(...

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

240. 骨骼动画文件.sk 怎么用Laya.loader.load去预加载 [ 73%]

骨骼动画文件.sk 怎么用Laya.loader.load去预加载 2017-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 可以预加载,试下下面的方式:Laya.loader.load(url, Handl...

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