• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)

1. 网络通信 · LayaAir3文档 · LAYABOX [ 100%]

...间 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

2. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 95%]

...现类似以下提示的警告。 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

3. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 73%]

... = 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

4. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...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

5. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...; 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