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

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

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

...码示例: let sp = new Laya.Sprite(); //画圆 sp.graphics.drawCircle(80,80,50,"#ff0000"); this.owner.addChild(sp); 圆形绘制比较简单,“8080”是圆形中心点坐标。50是半径,”#ff0000”是圆形填充颜色值。 运行效果: (图3-2) 3.3 IDE绘制椭圆 在Sprite...

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

2. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

...vbox.addChild(this.btn2); this.vbox.addChild(this.btn3); this.vbox.space = 80; this.vbox.align = "center"; } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

3. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...: number = 150; private X_OFFSET: number = 200; private Y_OFFSET: number = 80; private skins: any[]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.skins = ["resources/res/ui/radioButton (1).png...

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

4. 网络通信 · LayaAir3文档 · LAYABOX [ 31%]

...对服务器建立连接 this.socket.connectByUrl("ws://echo.websocket.org:80"); //表示需要发送至服务端的缓冲区中的数据 this.output = this.socket.output; //添加监听事件 this.socket.on(Event.OPEN, this, this.onSocketOpen); this.socket.on(Event.CLOSE, this, this.onSocketClose);...

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