大约有 2,782 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...的JS与laya库的JS引用顺序,参考内容 <script src='laya.js' loader='laya'></script> <script src='js/all/ui.js' loader='laya'></script> 2、分包文件module.def放在项目根目录下 参考内容 module:"all/ui" path:"src/ui" /*[COMPILER OPTIONS:ForcedCompile]*/...
来源: Laya_社区 发布时间: 20180519
...的引擎代码,如果是在微信小游戏环境里,调用的是MiniLoader.load方法 这个方法里先调用了一次url = URL.formatURL(url);所以最后传进Loader.load里的url是已经formatURL过了的, 如果加载的是图集的话,再Loader.onLoad方法里加载图集关联的图...
来源: Laya_社区 发布时间: 20180507
...怎么调用下载到本地的资源 cuixueying • 2017-05-18 17:10 Laya.loader.load可以对服务器的资源进行预加载,并缓存到本地,Laya.loader.getRes可以获取缓存下的资源文件! 我盼乙卯 • 2018-05-31 15:42 @cuixueying:请问这个缓存到本地是缓存到硬盘...
来源: Laya_社区 发布时间: 20170319
...j.com/api/player/auth/img?key=testpng oppo小游戏下 无法显示 Laya.loader .load( "https://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发...
来源: Laya_社区 发布时间: 20250818
...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...ao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite...
来源: Laya_社区 发布时间: 20180427
...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...
来源: Laya_社区 发布时间: 20180817
...后_referenceCount不会变成0,2.0版本是正常的可以变为0 Laya.loader.load('resources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码...
来源: Laya_社区 发布时间: 20231130
...ao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite...
来源: Laya_社区 发布时间: 20180427
...理引擎bug 百分百 复现 自从layaflash起,就一直存在的bug Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug EffectAnimation Bug 问题状态 最新活动: 2018-12-06 12:32 浏览: 2262 关注: 4 人 Laya_Aaron • 2018-12-06 1...
来源: Laya_社区 发布时间: 20181205