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

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

1191. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...ate onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */...

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

1192. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,会出现返回0的情况 [ 50%]

...76*****233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return fals...

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

1193. 监听不到Laya.Event.RESIZE事件 [ 50%]

...nerWidth; //获取窗口显示区的高度。 desHeight=window.innerHeight if(desHeight!=this.sourceHeight) { this.bg.y = 180; } else { this.bg.y = 540; } } 代码就这么写的 点击输入框监听不到 哪里用错了吗 2017-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

1194. 动态阴影被切割了?为啥没有显示完成的阴影 [ 50%]

...3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; instance.volume = { 'x': x, 'y': y, 'z': z } prevBox =...

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

1195. LAYA的AS3项目碰见个问题,求解 [ 50%]

...   {             super.dataSource = value;             if(dataSource==null) return;             names=dataSource.name;              txts.text = names;              ////////以下为:根据参数来定义样式                var itemBasic:Object=I...

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

1196. npm install layacmd -g之错 [ 50%]

...ERR! getaddrinfo ENOTFOUND layacmd layacmd:80 : ,layacmd npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! c:\Users\qykings\Documents\h5work\layaGame\trunk...

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

1197. 2.2-2.3版本 ani动画,序列帧动画最后一帧和第一帧衔接出现卡顿 [ 50%]

... 赞同来自: 贺迪青 、失灵沙尔克 laya.ani.js里 FrameAnimation if (FrameAnimation._sortIndexFun === null) {             FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true);         }这个null 改为undefined 2019-11-19 2 2 分享 微博 QZO...

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

1198. 动态加载的 animation第二次加载的时候不显示 [ 50%]

...细页面初始化的时候都执行这个的. item=new Laya.Animation(); if (i!=whichistrue) { aniname="lose_1_"+aniname+".ani"; } else { ran=Math.random(); aniname="win_1_"+aniname+".ani"; } item.loadAnimation(aniname); item.x=60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.dowor...

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

1199. 二次开发中:平台代码(android/ios)主动执行js脚本,在Laya1.0中生效,在Laya2.0中不生效 [ 50%]

...k():void{  alert("123456"); }  public static onClick1():void{    } }  if (window) { (<any>window).Test = Test; } Test导到全局 2019-03-14 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 18638179199 ...

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

1200. 1.7.18beta少方法? [ 50%]

...texSubImage2D整张image, //实测76*59的image此函数耗时1.2毫秒 if (Render.isConchWebGL) { (xoffset - 1 >= 0) && (gl.texSubImage2DEx(true, WebGLContext.TEXTURE_2D, 0, xoffset - 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (xoffset + 1 <= _w) &&...

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