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

大约有 1,033 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0071 秒)

1021. SubShader介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 30%]

...索引,常用的渲染状态有Cull、Blend、BlendSrc、BlendDst、DepthTest、DepthWrite。 pipelineMode:是最近几个版本引进的一个属性,它指的是当前使用的渲染管线,类似Unity中的渲染路径概念,目前截至到LayaAir 2.7.0beta,Laya支持"Forward"和"Shadow...

来源: Laya2.0_文档 发布时间: 20210715

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

1023. 动画状态机详解 · LayaAir3.0文档 · 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_文档 发布时间: 20230804

1024. 微信关系链: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

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

1026. 2D性能优化 · LayaAir3.0文档 · 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_文档 发布时间: 20231008

1027. 安装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

1028. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 18%]

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

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

1029. 微信小游戏加载资源问题 [ 18%]

...r.replace(/\u2006|\x27/g, ""); if (_inputTarget._restrictPattern.test(str)) { str = str.replace(_inputTarget._restrictPattern, ""); } } _inputTarget.text = str; _inputTarget.event(Laya.Event.INPUT); MiniInput.inputEnter(); _inputTarget.event("confirm"); }); MiniAdpter.w...

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

1030. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 17%]

...egory.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Connecting to com.layabox.game Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. D/dalvikvm: Late-...

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