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

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

1061. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...大量数据或敏感信息。 xhr.send('https://httpbin.org/post', 'name=test&age=20', 'post', 'text'); 2.2、获取HTTP响应 在发送完HTTP请求后,我们可以通过事件的帧听,针对不同的事件响应,做出相应的逻辑处理。 2.1 支持的事件类型 LayaAir中的Http...

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

1062. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 28%]

...ml> <html> <head> <meta charset="UTF-8"> <title>Test WebSocket</title> <script type="text/javascript">     //显示信息     var log = function(s) {     if (document.readyState !== "complete") {     log.buffer.push(s);     } else {     document.get...

来源: Laya_社区 发布时间: 20170724

1063. 动画状态机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 27%]

...r : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 test(e: Laya.Event) { //动画状态机,过渡融合到Ru...

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

1064. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 25%]

...is, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.wind...

来源: Laya_社区 发布时间: 20180525

1065. socket大型项目回调 [ 25%]

...SHAKE,handshakebuffer); // this.socket.send('{"cmd":0,"data":{"user_name":"test0001","password":"abcd1234"}}@'); this.send(buffer); this.socket.output.writeArrayBuffer(buffer); this.socket.flush(); } private onClose(e:Laya.Event):void { console.error("[Pomelo] connect close:",e); this.emit(Pomelo.EV...

来源: Laya_社区 发布时间: 20180119

1066. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 22%]

...绘制10000个文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(...

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

1067. [LayaAirIDE3]xcode切入切出声音不播放 [ 22%]

...               SoundManager.Instance.playMusic111("resources/music/test/FY-0079.wav");             });         }     }   import { JsonTool } from "src/tools/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void...

来源: Laya_社区 发布时间: 20250930

1068. 安装layaair2-cmd一直失败 [ 20%]

... > node lib/install.js   ‼ read ECONNRESET   ‼ gifsicle pre-build test failed   i compiling from source   × Error: Command failed: C:\Windows\system32\cmd.exe /s /c "autoreconf -ivf" 'autoreconf' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���...

来源: Laya_社区 发布时间: 20200211

1069. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 19%]

...指定粒子的颜色。 Texture:指定粒子使用的纹理贴图 Alpha Test Value:透明测试开启时,当前像素根据设定条件决定是否输出颜色 Tiling Offset:获取纹理平铺和偏移 Material Render Mode:设置渲染模式 ​ Opaque:默认设置,适用于没有透...

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

1070. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 19%]

...指定粒子的颜色。 Texture:指定粒子使用的纹理贴图 Alpha Test Value:透明测试开启时,当前像素根据设定条件决定是否输出颜色 Tiling Offset:获取纹理平铺和偏移 Material Render Mode:设置渲染模式 ​ Opaque:默认设置,适用于没有透...

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