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

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

131. 版本管理swf找同名的Json文件发现找不到 [ 88%]

...json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{         constructor(){             super();         }         //初始化预加载数据         public m_initData(url:string,atlas:boolean,atlasPath?:string){   ...

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

132. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 88%]

...使用本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过5M的话,只要能找到本地的资源,怎么写也没问题。 但是, 百度小游戏的本地包有5M的限制,...

来源: Laya2.0_文档 发布时间: 20210714

133. laya.net.Downloader_API3.0 [ 88%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/net/Downloader" Downloader Class Downloader Hierarchy Downloader Index Properties httpRequestPool Methods audio common image imageW...

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

134. Laya.Video内存泄漏问题 [ 88%]

Laya.Video内存泄漏问题 前段时间用Laya来做视频播放的功能,版本是 1.7.4_beta 发现Laya.Video对象在destroy后内存占用不会被释放。 参考Google的各个结果,表示H5,video对象存在删除节点后并不能马上释放内存的BUG,如果是频繁的视频...

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

135. Texture如何转换成Texture2D有人搞过吗 [ 88%]

...成的URL,因为这个URL没有后缀,所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D   这样就原图片地址是个Texture2D,...

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

136. 缓存清除方法clearTextureRes [ 88%]

...         url=URL.formatURL(url);             var arr=laya.net.Loader.getAtlas(url);             var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url);             if (res.bitmap){                 if (Render.isConchApp){ ...

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

137. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 88%]

...使用本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,...

来源: Laya2.0_文档 发布时间: 20210715

138. "LoaderManager:unknown file("+url+") extension with: "+extension+"."报这个错是什么问题 [ 88%]

...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 能提供一个实例代码吗,我们查下具体问题,没有报错环境不好定位问题! 2017-09-29 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

139. cdn路径配置问题(已解决) [ 88%]

...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 laya21126 赞同来自:             URL.basePath = LoginServiceMagr.instance.loginServiceDataVO.cdndomain;             URL.rootPath = LoginServiceMagr.instance.loginServiceDataVO.cdndomain;  这个LoginServi...

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

140. Laya.loader.load 如何同时加载图片数组以及json图集 [ 88%]

Laya.loader.load 如何同时加载图片数组以及json图集 Laya.loader.load([{url: "res/atlas/images/fesh.json", type: Loader.ATLAS}, {url: "res/atlas/images.json", type: Loader.ATLAS},{url: "res/atlas/common.json", type: Loader.ATLAS}, {url: "res/atlas/template/ButtonTab.json", type: Loader.A...

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