大约有 406 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
...的,所以不能在下一行代码立刻获取数据,推荐使用Laya.loader.create yinglei999 • 2017-11-17 19:10 1.数据都为零,需要获取的数据需要在资源加载的回调中进行 我不太明白,在Laya.MeshSprite3D.load 这个函数中只有一个参数是具体的地址 而...
来源: Laya_社区 发布时间: 20171117
...3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),nul...
来源: Laya_社区 发布时间: 20180517
...从第二张图片(迈出左脚的那张图片)开始的。 还有Loader.ATLAS是static] 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。 load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPat...
来源: Laya_社区 发布时间: 20160712
...的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并不是文本的内容,求支...
来源: Laya_社区 发布时间: 20171009
js预加载声音报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20161216
...载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, functio...
来源: Laya2.0_文档 发布时间: 20210714
...通过预加载方式解决这个问题。 package { import flash.display.Loader; import flash.display.LoaderInfo; import flash.display.Sprite; import fash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprit...
来源: Laya_社区 发布时间: 20151123
请问在微信小游戏中Laya.loader.getRes取不到图集资源是怎么回事呀?h5版本正常 在微信小游戏中使用Laya.loader.load成功加载了图集,然后使用Laya.loader.getRes取不到图集资源。h5版本正常。 初步测试是因为加了版本号的原因 2018-12-1...
来源: Laya_社区 发布时间: 20181213
...资源加载姿势呢?? 目前我的资源加载方式是: Laya.loader.load 这个方法里面加载资源,包括图片、音效等资源。 当我使用Laya.SoundManager.playMusic播放音乐或者playSound时播放音效资源时,我传入的是资源路径,会提示 Resources al...
来源: Laya_社区 发布时间: 20180917
...小游戏中加载资源,如果引用的是本地路径,比如: Laya.loader.load("resources/layaair.png"); 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是,微信小游戏的本地包有4M的限制,一旦...
来源: Laya3.0_文档 发布时间: 20251010