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

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

1191. parameter 2 is not of type 'WebGLTexture'. [ 51%]

...e; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加载资源足以播放 if(videoElement.readyState == 4){ videoElement.play(); } }); 附件 : --> demo.zip 2020-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...

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

1192. laya3d的scene里边怎么能添加2d的显示对象? [ 51%]

...是3d显示对象列表里添加2d显示对象,我看3d的addChild源码 if (!((node instanceof laya.d3.core.Sprite3D ))) throw new Error("Sprite3D:Node type must Sprite3D."); 是不支持的,请问有其他方式么? 麟。 • 2018-09-12 18:44 我的目的是想2d的ui可以有3d...

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

1193. 【严重】layaAir的存图代码(htmlCanvas)在安卓微信浏览器的色差问题 [ 51%]

...; htmlCanvas.toBase64("image/png", 0.9, function(base64){ //trace(base64); if (!testTf){ __JS__('setWork(base64)'); } }); 2018-10-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 相关问题 关于微信小游戏...

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

1194. 请问:通过Laya.Geolocation来定位存在较大误差(超过1公里),该如何解决? [ 51%]

...),该如何解决? // 获取地理位置 function getCurPosition() { if (Laya.Geolocation.supported) { Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.getCurrentPosition( Laya.Handler.create(null, cb_onGeoPositionSuccess), Laya.Handler.create(null, cb_onGeoPositionFail)); } else {...

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

1195. LayaNative2.0 UI移除舞台,再添加必然无法显示 [ 51%]

...); _p2 = new UI2();   ShowHide(); }   private function ShowHide():void { if (c % 2 == 0) { _con3.addChild(_p); _con3.addChild(_p2); } else { _p.removeSelf(); _p2.removeSelf(); } c++; Laya.timer.once(2000, this, ShowHide); }   【native2.0中】stage上加几个平级container,然后再同一con...

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

1196. 发布微信后无法触发mouse_up事件 [ 51%]

...ler(e:laya.events.Event):void { var touches: Array<any> = e.touches; if (touches) { for(let i=0;i<touches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 ...

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

1197. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

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

1198. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,会出现返回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

1199. 监听不到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

1200. 动态阴影被切割了?为啥没有显示完成的阴影 [ 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