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

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

1. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpReque...

来源: Laya3.0_文档 发布时间: 20251010

2. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 92%]

...别设置轴心点 this.sprite.pivotY = this.sprite.height/2; this.sprite.anchorX = 0.5; //锚点:sprite的中心 this.sprite.anchorY = 0.5; this.sprite.scale(0.5, 0.5); //缩放大小 this.sprite.scaleX = 2; //x、y分别设置缩放 this.sprite.scaleY = 2; this.sprite.skew(5, 5); //倾斜度 this....

来源: Laya3.0_文档 发布时间: 20251010

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

...位置。 * @param points 线段的点集合,格式[controlX, controlY, anchorX, anchorY...]。 * @param lineColor 线段颜色,或者填充绘图的渐变对象。 * @param lineWidth (可选)线段宽度。 */ drawCurves(x: number, y: number, points: any[], lineColor: any, lineWidth: number...

来源: Laya3.0_文档 发布时间: 20251010

4. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 34%]

...orEnv.IGameScene, node: Laya.Node) { if (node instanceof Laya.Sprite) node.anchorX = node.anchorY = 0.5; } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:57 img{cursor:pointer}

来源: Laya3.0_文档 发布时间: 20251010