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

大约有 2,613 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0072 秒)

61. laya.loaders.HierarchyParser_API3.0 [ 94%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/loaders/HierarchyParser" HierarchyParser Class HierarchyParser Hierarchy HierarchyParser Index Methods collectResourceLinks parse Methods Static collectResourceLinks collectResourceLinks(data: any, basePath: string): (string ...

来源: Laya3.0_api 发布时间: 20231115

62. Laya.loader.create问题 [ 94%]

Laya.loader.create问题 使用Laya.loader.create方法加载了png图片 之后使用new Laya.Image(url),并添加到舞台,发现场景整个是黑的,未发现图片,而如果没使用Laya.loader.create,而直接new Laya.Image(url)的话,就会出现图片,这是为啥? 2017-05-1...

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

63. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 94%]

Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/some...

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

64. laya.loaders.TextureLoader_API3.0 [ 94%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/loaders/TextureLoader" TextureLoader Class TextureLoader Hierarchy TextureLoader Implements IResourceLoader Index Methods load wrapTex2D Methods load load(task: ILoadTask): Promise<Texture> Implementation of IResourceLo...

来源: Laya3.0_api 发布时间: 20231115

65. Laya.loader.load GPUMemory如何不增加 [ 94%]

Laya.loader.load GPUMemory如何不增加 大佬们好,地图加载, 地图我有很多块文件,预加载造成了GPUMemory过高。               var tPath=this.mergePath(this._resPath,tTileSet.image);             this._loader.load(tPath,/*laya.net.Loader.IMAGE*/"image",f...

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

66. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 94%]

Laya.loader.load(xx) 当地址""的时候,会报错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)        ...

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

67. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 94%]

[LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 laya3 加载资源后使用 Laya.loader.on(Event.ERROR, this, this.onError) 无法获得加载失败响应,根据示例里的错误处理和进度操作也得不到错误的响应,laya2里是可以的...

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

68. 小游戏内 个别手机出现图片花了 像马赛克一样的东西,很多图片不显示 [ 94%]

...dData = [ { "url": 'res/atlas/main.atlas', "type":Laya.loader.ATLAS }, { "url": 'res/atlas/newUser.atlas', "type":Laya.loader.ATLAS }, { 'url': "res/atlas/role_skin.atlas", "type":Laya.loader.ATLAS }, { 'url': "res/atlas/number.atlas&q...

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

69. loader 资源放cdn的问题? [ 94%]

loader 资源放cdn的问题? 如果我将打包的图集资源放到其他站点cdn上,loader要如何加载? 2017-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 这个没啥区...

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

70. 关于资源加载Laya.loader的问题 [ 94%]

关于资源加载Laya.loader的问题 目前laya加载资源一般是用这种处理方式: Laya.loader.load(res, new Handler(caller, callBack)); 这里隐藏了一个问题,就是caller 被 Laya.loader 内某个成员持有引用,加载完成触发callBack后才释放。 如果网络较差...

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