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

大约有 409 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)

141. 急急急,如何设置按钮点击加载ani [ 79%]

...复 Laya_Aaron 赞同来自: Alex Huang package {     import laya.net.Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import laya.webgl.WebGL;     import laya.utils.Mouse;     import laya.ui.Button;     import laya.display.Sprite;     i...

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

142. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 79%]

...的,所以不能在下一行代码立刻获取数据,推荐使用Laya.loader.create yinglei999 • 2017-11-17 19:10 1.数据都为零,需要获取的数据需要在资源加载的回调中进行 我不太明白,在Laya.MeshSprite3D.load 这个函数中只有一个参数是具体的地址 而...

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

143. 微信小游戏设置网络动态加载无法显示 [ 79%]

...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

144. 人物行走图动画 [ 79%]

...从第二张图片(迈出左脚的那张图片)开始的。   还有Loader.ATLAS是static] 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源Laya.loader.load(AniConfPat...

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

145. LayaAir 如何读取资源中的txt文件中的内容 [ 79%]

...的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

146. js预加载声音报错 [ 79%]

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

147. [LayaAir3]LayaAir3 预制体销毁时如何回收其依赖的资源 [ 79%]

...销毁时如何回收其依赖的资源   //加载预制体 var win; Laya.loader.load("prefab/loginScene/LoginScene.lh").then(res=>{             win:LoginSceneRT = res.create();             mainRT.SceneLayer.addChild(win); }); //销毁预制提 win.destroy(); //如何回收此预制...

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

148. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 79%]

...载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, functio...

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

149. LayaFlash针对资源加载是同步还是异步? [ 79%]

...通过预加载方式解决这个问题。 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

150. 请问在微信小游戏中Laya.loader.getRes取不到图集资源是怎么回事呀?h5版本正常 [ 79%]

请问在微信小游戏中Laya.loader.getRes取不到图集资源是怎么回事呀?h5版本正常 在微信小游戏中使用Laya.loader.load成功加载了图集,然后使用Laya.loader.getRes取不到图集资源。h5版本正常。   初步测试是因为加了版本号的原因 2018-12-1...

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