大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya_示例(51) Laya3.0_文档(46) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
请问在微信小游戏中Laya.loader.getRes取不到图集资源是怎么回事呀?h5版本正常 在微信小游戏中使用Laya.loader.load成功加载了图集,然后使用Laya.loader.getRes取不到图集资源。h5版本正常。 初步测试是因为加了版本号的原因 2018-12-1...
来源: Laya_社区 发布时间: 20181213
...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...? 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 引擎中有使得Label中文字逐字显示的方法吗? 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件...
来源: Laya_社区 发布时间: 20190517
...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...
来源: Laya_社区 发布时间: 20180817
...sCfgList 是一组资源类似 { url: CONFIG_MONSTER_LEV, type: Laya.Loader.JSON }, { url: CONFIG_TERRAIN, type: Laya.Loader.JSON }, { url: CONFIG_FORMATION_TEMPLATE, type: Laya.Loader.JSON }, { url: CONFIG_MOVE_PATH, type: Laya.Loader.JSON }, { url: CONFIG_LEVEL, type: Laya.Loader.JSO...
来源: Laya_社区 发布时间: 20170808
...加载 之后逐个绘制在界面上。 实现很简单,我通过Laya.loader.load预加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第8...
来源: Laya_社区 发布时间: 20161107
...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下Loader 和 Loade...
来源: Laya_社区 发布时间: 20180518
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...
来源: Laya_示例 发布时间: 20240930
...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...
来源: Laya_社区 发布时间: 20180317
.../../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_示例 发布时间: 20240930