大约有 2,661 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0075 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
.../../res/ui/radioButton (2).png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage....
来源: Laya_示例 发布时间: 20251219
...ar step = 0; Laya.init(1285, 727, Laya.WebGL); var stage = Laya.stage; var loader = Laya.loader; stage.bgColor = "#00ffff"; stage.alignH = "center"; stage.alignW = "middle"; stage.scaleMode = "showall"; loader.load("../../res/guide/crazy_snowball.png", Handler.create(this, init)); function init(e) {...
来源: Laya_社区 发布时间: 20171031
...e === Keyboard.H) { sp.visible = false; //隐藏界面,清理资源 Laya.loader.clearTextureRes("res/bg.jpg"); Laya.loader.clearTextureRes("res/fighter.atlas"); } else if (e.keyCode === Keyboard.S) { //显示界面,资源会自动恢复 sp.visible = true; } } } } ``` **clearTextureRes** 销毁Te...
来源: Laya2.0_文档 发布时间: 20210714
...e === Keyboard.H) { sp.visible = false; //隐藏界面,清理资源 Laya.loader.clearTextureRes("res/bg.jpg"); Laya.loader.clearTextureRes("res/fighter.atlas"); } else if (e.keyCode === Keyboard.S) { //显示界面,资源会自动恢复 sp.visible = true; } } } } ``` **clearTextureRes** 销毁Te...
来源: Laya2.0_文档 发布时间: 20200929
...的版本版本管理(会重命名文件名称的) 例子代码: LoadError(){console.log("LoadError")} LoadOK(){console.log("LoadOK")} Laya.loader.on(Laya.Event.ERROR,this,this.LoadError) Laya.loader.load("不存在的图片URL",Laya.Handler(this,this.LoadOK)); 发布成微信小...
来源: Laya_社区 发布时间: 20180920
...相关的链接 提交 2 个回复 何小威 赞同来自: 无名氏 Laya.loader.load('../laya/assets/comp/bg.jpg',Laya.Handler.create(this,()=>{ this.bgImage = Laya.loader.getRes('../laya/assets/comp/bg.jpg'); console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-...
来源: Laya_社区 发布时间: 20180730
...载速度慢 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 模型资源释放问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 Animation ...
来源: Laya_社区 发布时间: 20190515
...? 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 引擎中有使得Label中文字逐字显示的方法吗? 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件...
来源: Laya_社区 发布时间: 20190517
...ml信息出错 你好,我想获取xml的信息(得到../h5/),可是Loader.getRes(config_PATH) as XmlDom这个得到的不是XmlDom,而是ArrayBuffer{}结构。configData.attributes和configData.childNodes都是undefined。麻烦帮忙看看是哪里出错了。 代码: var configData:...
来源: Laya_社区 发布时间: 20170531
...r引擎 子容器的事件问题 // 程序入口 Laya.init(800, 800); Laya.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); let vhvt: Vi...
来源: Laya_社区 发布时间: 20170822