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

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

411. 请问在微信小游戏中Laya.loader.getRes取不到图集资源是怎么回事呀?h5版本正常 [ 72%]

请问在微信小游戏中Laya.loader.getRes取不到图集资源是怎么回事呀?h5版本正常 在微信小游戏中使用Laya.loader.load成功加载了图集,然后使用Laya.loader.getRes取不到图集资源。h5版本正常。   初步测试是因为加了版本号的原因 2018-12-1...

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

412. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 72%]

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

413. ConchJNI.RunJS java调用js方法 [ 72%]

...? 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 引擎中有使得Label中文字逐字显示的方法吗? 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件...

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

414. 使用外部引擎播放layaair制作的.ani [ 72%]

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

415. app打包资源加载不完全 [ 72%]

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

416. 关于大量图片加载绘制后的内存暴增的疑问 [ 72%]

...加载 之后逐个绘制在界面上。 实现很简单,我通过Laya.loader.load预加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第8...

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

417. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 72%]

...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下LoaderLoade...

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

418. 滤镜-颜色滤镜 [ 72%]

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

419. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 72%]

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

420. UI-RadioGroup [ 72%]

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