大约有 2,782 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2462) Laya2.0_文档(107) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...= assets; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资源被卸载 console.log(Laya.loader.getRes(asset)); sp.destroy(); 这些都测试过,没有消减 curmem。 图片 506*9...
来源: Laya_社区 发布时间: 20180622
...成了.ani 文件,可是怎么在主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。 代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import...
来源: Laya_社区 发布时间: 20190708
...摄像机 获取.lh文件节点克隆显示正常 //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1)); //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常 //Laya.loader.create(resource, Laya....
来源: Laya_社区 发布时间: 20200107
...同样的代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后...
来源: Laya_社区 发布时间: 20180424
...Info.__proto.event (http://127.0.0.1:17168/game/code.js:18812:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:17168/game/code.js:31710:11) at Loader.onLoaded (http://127.0.0.1:17168/game/code.js:31686:10) at EventHandler.__proto.runWith (http://127.0.0.1:17168/game/code.js:...
来源: Laya_社区 发布时间: 20191017
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...
来源: Laya_示例 发布时间: 20251218
... 引擎版本1.7.18beta 我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS}, {url: "res/atlas/xxx2.json", type: Loader.ATLAS}, {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(... 并且在...
来源: Laya_社区 发布时间: 20180505
...les/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:...
来源: Laya_社区 发布时间: 20210420
...质 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this....
来源: Laya2.0_文档 发布时间: 20210715
hBox使用问题 Laya.loader.load(picAy,Handler.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },150...
来源: Laya_社区 发布时间: 20161026