大约有 127 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
...现类似以下提示的警告。 Failed to load 'http://localhost:18094/resources/ddlx_02/ddlx_02.atlas' Unexpected token 'd', "ddlx_02.pn"... is not valid JSON 这是由于,虽然spine的atlas和我们引擎的图集文件atlas同名,但不是同样的东西。我们的图集信息是Json格...
来源: Laya3.0_文档 发布时间: 20251128
...lay = false; SoundManager.Instance.playMusic111("resources/music/test/FY-0079.wav"); }); } } import { JsonTool } from "src/tools/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountI...
来源: Laya_社区 发布时间: 20250930
...成的资源。 批量预加载的示例代码如下: ```typescript var resource:Array = [ "xx.ls", "xx/xx.lh", "xx/xx.lmat", "xx/xx.png", "xx/xx.lm", "xx/xx.ltc", "xx/xx.lani", ]; //批量预加载 Laya.loader.create(resource, Laya.Handler.create(this, this.onLoaded)); onLoaded(): void { //加载...
来源: Laya2.0_文档 发布时间: 20210714
... = new Vector2(); this.resPath.push(newVec); } //预加载所有资源 var resource: ILoadURL[] = [{ url: "res/threeDimen/scene/TerrainScene/XunLongShi.ls", priority: 1 }, { url: "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", priority: 1 }, { url: "res/threeDimen/scene/TerrainScene/Assets/Heig...
来源: Laya3.0_文档 发布时间: 20230303
...oint.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (图8-2) 九...
来源: Laya3.0_文档 发布时间: 20251010
...景颜色。 onInit(); } private function onInit():void { clip = new Clip("resource/ui/clip_num.png", 10, 1);//创建一个 Clip 类的实例对象 clip ,传入它的皮肤skin和横向分割数量、竖向分割数量。 clip.autoPlay = true;//设置 clip 动画自动播放。 clip.interval = 100;/...
来源: Laya3.0_api 发布时间: 20231115
...; Laya.stage.addChild(sp2); // 加载并显示一个图片2 sp2.loadImage("resources/layabox.png", null); sp2.pos(200, 190); // 设置blendMode sp2.blendMode = "lighter"; 我们来看看运行结果: (图3-4) 与图3-3对比可以看到,使用“lighter”的blendMode后,sp2图片的颜色...
来源: Laya3.0_文档 发布时间: 20251010