大约有 1,523 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1066) Laya3.0_api(151) Laya2.0_api(106) laya_api(97) Laya2.0_文档(64) Laya3.0_文档(21) Laya2.0_示例(9) Laya_示例(9)
...json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{ constructor(){ super(); } //初始化预加载数据 public m_initData(url:string,atlas:boolean,atlasPath?:string){ ...
来源: Laya_社区 发布时间: 20180615
...使用本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过5M的话,只要能找到本地的资源,怎么写也没问题。 但是, 百度小游戏的本地包有5M的限制,...
来源: Laya2.0_文档 发布时间: 20210714
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
Laya.Video内存泄漏问题 前段时间用Laya来做视频播放的功能,版本是 1.7.4_beta 发现Laya.Video对象在destroy后内存占用不会被释放。 参考Google的各个结果,表示H5,video对象存在删除节点后并不能马上释放内存的BUG,如果是频繁的视频...
来源: Laya_社区 发布时间: 20170515
...成的URL,因为这个URL没有后缀,所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D 这样就原图片地址是个Texture2D,...
来源: Laya_社区 发布时间: 20181221
... 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
...使用本地路径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,...
来源: Laya2.0_文档 发布时间: 20210715
...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 能提供一个实例代码吗,我们查下具体问题,没有报错环境不好定位问题! 2017-09-29 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20170926
...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 laya21126 赞同来自: URL.basePath = LoginServiceMagr.instance.loginServiceDataVO.cdndomain; URL.rootPath = LoginServiceMagr.instance.loginServiceDataVO.cdndomain; 这个LoginServi...
来源: Laya_社区 发布时间: 20171025
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