大约有 409 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0065 秒)
... string): void { Laya.SoundManager.stopAll(); Laya.loader.clearRes(currentBgmUrl); Laya.loader.load([{ url: currentBgmUrl, type: Laya.Loader.SOUND }], Laya.Handler.create(this, () => { console.log("----playMusic111 ...
来源: Laya_社区 发布时间: 20250930
...不能继续播放 打地鼠的Laya1.0想用2.0写出来总是出错 Laya.loader.create 进度回调函数执行两次 麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 关于环形进度条,进度不能重置问题 官方提供的进度条示例 只能设置progress.png的九...
来源: Laya_社区 发布时间: 20180615
...放延时啊..................... 问题二:需不需要提前使用Laya.loader.load()进行提前加载? 问题三:如果我一个项目可能,音效很多的时候,假设,有个四五十个音效,我怎么才能一起进行预加载,总不可能一个路径一个路径的输入进去吧,有没有...
来源: Laya_社区 发布时间: 20180119
... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...
来源: Laya2.0_文档 发布时间: 20210715
...滑动,又开始上下滑动了 播放声音出错,求指教 请问下loader如何强制加载一个文件,避免浏览器的缓存 求教: soundManager如何停止正在播放的背景音乐 [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 播放背...
来源: Laya_社区 发布时间: 20171101
...此方法只执行一次 */ 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
...下: ```typescript //先加载plf类型的合并后文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:T...
来源: Laya2.0_文档 发布时间: 20210714
...加后缀,一个不加。这个就跟使用图集文件一样,目前的loader里已经为你做了处理,根据图集后面的版本名字直接带给了png加载的处理 2018-04-04 0 0 分享 微博 QZONE 微信 rongershaoye 赞同来自: 感谢xiaosong的回答, 但还是有点不清...
来源: Laya_社区 发布时间: 20180404
... ```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
...候,会出现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