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

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

281. 如何判断加载资源是否成功? [ 73%]

如何判断加载资源是否成功? Laya.loader.load(["res/book00"+2+".txt"], Laya.Handler.create(this, onLoaded(i))) 2018-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loade...

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

282. layaAir2.3克隆以及获取节点重大bug!!! [ 73%]

...摄像机 获取.lh文件节点克隆显示正常         //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1));         //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常         //Laya.loader.create(resource, Laya....

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

283. 怎么在api中找到 Laya.loader.load [ 73%]

怎么在api中找到 Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.c...

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

284. 鼠标交互-Hold [ 73%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...

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

285. 加载模型抛出异常:LoaderManager:unknown file(../../res/models/cike/cike.lh) extension with:lh [ 73%]

加载模型抛出异常:LoaderManager:unknown file(../../res/models/cike/cike.lh) extension with:lh 工程目录下有这个cike.lh文件,为什么还是会报未知文件,有知道的吗? 这是什么原因会抛出这个异常,是文件扩展名有问题,还是路径有问题,看...

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

286. 问一下这个问题要怎么改啊? [ 73%]

... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as packa...

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

287. 鼠标交互-Hold [ 72%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this...

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

288. Laya的下载Loader 能下载Zip 压缩包吗? [ 72%]

Laya的下载Loader 能下载Zip 压缩包吗? Laya的下载Loader 能下载Zip 压缩包吗? 我没有在Loder中找到对应的类型。     附件 : --> 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

289. 模型资源释放问题 [ 72%]

模型资源释放问题 通过这种方式加载的3d角色资源 Laya.loader.create("res/role3d/mesh/563001/563001.lh",Laya.Handler.create(this,this.onModelOK),null,Laya.Sprite3D); 然后用这种方式来释放 var role3D:Laya.Sprite3D = Laya.loader.getRes("res/role3d/mesh/563001/563001.lh"); ro...

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

290. 加载配置json文件不成功!json文件放在bin目录下的 [ 72%]

加载配置json文件不成功!json文件放在bin目录下的   Laya.loader.load(["res/atlas/comp.atlas","res/atlas/popup.atlas","res/atlas/cartoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博...

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