大约有 489 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(403) Laya2.0_文档(47) Laya3.0_api(22) Laya3.0_文档(8) laya_api(3) Laya2.0_示例(3) Laya2.0_api(3)
...候,会出现stage的宽高变化了: printScreenInfo("aaa"); Laya.loader.load(resArr, Handler.create(this, this.onResLoaded, [this.mainuiView, winName, zOrder])); printScreenInfo("bbb"); private onResLoaded(parent:Laya.Node, winName:string, zOrder:number):void { printScreenInfo("ccc");...
来源: Laya_社区 发布时间: 20180316
... ```typescript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //...
来源: Laya2.0_文档 发布时间: 20210715
...图集。 ```java //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.lo...
来源: Laya2.0_文档 发布时间: 20210715
...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...
来源: Laya3.0_文档 发布时间: 20251010
...正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.hei...
来源: Laya2.0_文档 发布时间: 20210714
...忘录】关于Tween动画无法正常作用问题-解决办法 请问下loader如何强制加载一个文件,避免浏览器的缓存 在线急等,发现你们这个编译器一个bug,不能实现负负得正 问题状态 最新活动: 2023-11-16 11:50 浏览: 2451 关注: 2 人
来源: Laya_社区 发布时间: 20231113
...是在Native就播放不了(Android),也没错误信息;用 Laya.loader.load 也是一样,但是 加载图片没问题,唯独音频不行; 2、Native 端 只能调试js无法查看 打印信息吗? 记录一下: 1、在AndroidStudio 用 logcat看了一下日记,会出...
来源: Laya_社区 发布时间: 20250306
...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...
来源: Laya_社区 发布时间: 20180709
...放延时啊..................... 问题二:需不需要提前使用Laya.loader.load()进行提前加载? 问题三:如果我一个项目可能,音效很多的时候,假设,有个四五十个音效,我怎么才能一起进行预加载,总不可能一个路径一个路径的输入进去吧,有没有...
来源: Laya_社区 发布时间: 20180119
...itMat = new Laya.PBRStandardMaterial(); var texture: Laya.Texture2D = Laya.loader.getRes("Reference/cardtest.png"); unlitMat.albedoTexture = texture; cardOne.meshRenderer.material = unlitMat; cardOne.meshRenderer.castShadow = true; } }真心求教大佬,怎么才能让在底板下面的部分产...
来源: Laya_社区 发布时间: 20191223