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

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

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

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

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

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

423. 滤镜-颜色滤镜 [ 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_示例 发布时间: 20251130

424. 微信小游戏运行导出项目的时候报错: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

425. 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_示例 发布时间: 20251130

426. UI-RadioGroup [ 72%]

...1).png", "res/ui/radioButton (2).png", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

427. 模型资源释放 [ 72%]

...放资源**/ private function assetsDispose(assetsUrl:String):void { Laya.loader.clearRes(assetsUrl); //加载盘释放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAsset...

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

428. 加载角色 一张人物图片被分成了3个部位 这个load只能传一个地址 请问怎么一起加载 [ 72%]

...清除,比如要瞬移角色的时候停止。伤脑壳~~!! 请问下loader如何强制加载一个文件,避免浏览器的缓存 请教一个关于laya2.5d项目美术规范的问题哈 问题状态 最新活动: 2017-05-10 11:22 浏览: 1897 关注: 3 人 lxf4303120 • 2017-05-10 12:51 ...

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

429. 更新到1.5.4的问题 [ 72%]

更新到1.5.4的问题 用Laya.loader加载报错:RangeError: Maximum call stack size exceeded 出现情景:关卡选择界面进入到游戏界面时,用Laya.loader加载了很多游戏资源,游戏结束后,返回到关卡选择界面前,通过Laya.loader.clearres接口清理了游戏相...

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

430. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 72%]

...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...

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