大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
...间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", "", "get", "text");//需要在resources文件夹下新建一个data.txt文件 //设置完成事件,添加回调方法 http.once(Laya.Event.COMPLETE, this, this.completeHandler); //设置错误事件,...
来源: Laya3.0_文档 发布时间: 20250104
...现类似以下提示的警告。 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
... = 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
...; 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