大约有 779 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
关于loader加载Loader.JSON的一些问题 今天在处理本地JSON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res); //放置方块 }), null, Laya.Loader.JSON); } 代码运行到这老是报错,报错...
来源: Laya_社区 发布时间: 20200311
3D资源加载,进度显示问题 使用Laya.loader.create场景资源的时候(比如加载loveScence.ls),onProgress函数回掉监听不到,然后界面上的加载进度会一直停留在一个百分百进度,等场景里面的素材全部加载完,onProgress才会收到进度消...
来源: Laya_社区 发布时间: 20170920
...链接 提交 1 个回复 Monica - 知识达人 赞同来自: 通过Laya.loader.load进行预加载即可 2017-11-01 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xxing22657 相关问题 加载到舞台的3D模型不显示贴图 IDE1.7....
来源: Laya_社区 发布时间: 20171031
...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20160610
请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 如题,API上并没有明确标出。看这两个Loader所在的包名net,好像是都支持网络资源的加载,但atlas和png放在网络服务器同...
来源: Laya_社区 发布时间: 20180528
Laya.loader.load 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent ...
来源: Laya_社区 发布时间: 20181208
...的 fbxtool 工具文件你们有吗? 我不要插件,要可执行的exe Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 天空盒 cubemap ltc 格式? layabox能用上webp图片格式么? 小游戏 解析xml 问题 问题状态 最...
来源: Laya_社区 发布时间: 20151110
...资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE }); Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false)); 在加载的时候ios的微信小游戏是没有问题的,但是到...
来源: Laya_社区 发布时间: 20180824
...第一次没缓存的情况下 动画只会播放一半. 附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170701
...{ // this.tiledMap = new TiledMap(); // // Laya.loader.create(["res/tiledMap/t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () => // // { // this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya....
来源: Laya_社区 发布时间: 20201230