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

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

51. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 92%]

...oundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) {...

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

52. 原生语言与JS通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 92%]

...据 */ static handleSyncMessage(eventName: string, data: string): string { if (eventName == "syncMessage") { return "sync message from platform"; } return "default sync result"; } /** * 异步事件 * @param eventName 事件名称 * @param data 数据 * @param cb callback */ static async handleAsync...

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

53. 2.0版本 ios浏览器旋转,会导致适配出现问题,无法旋转回来 [ 91%]

...Ios=true; window.top.onresize = function () { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { isIos=false; }else if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){ isIos=true; } var windowWidth=true; if(window.document.body.clientWidth>document.body.cli...

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

54. 如何启用摇一摇 [ 91%]

...= z = last_x = last_y = last_z = 0;'); __JS__('var canShake = 1'); __JS__('if (window.DeviceMotionEvent){window.addEventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acce...

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

55. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 91%]

...  public static GetInstance(): CommandBuffer_Outline{         if(this.instance == null) this.instance = new CommandBuffer_Outline();         return this.instance;     }      public init(): void {         //使用之前必须先初始化        ...

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

56. Tween文件内发现一个bug [ 91%]

...空的逻辑没有了 //如果对象被销毁,则立即停止缓动 /*[IF-FLASH]*/if (target is Node && target.destroyed) return clearTween(target); //[IF-JS]if (target.destroyed) return clearTween(target); [IF-JS]if (target != null && target.destroyed) return clearTween(target); ?...

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

57. 其他引擎的Demo-Example_05 [ 91%]

...h (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:Array = []; private points3:Array = []; private tpoint1:Array = []; ...

来源: Laya_示例 发布时间: 20251130

58. 其他引擎的Demo-Example_05 [ 91%]

...h (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:Array = []; private points3:Array = []; private tpoint1:Array = []; ...

来源: Laya2.0_示例 发布时间: 20251130

59. tree异步选中问题 [ 91%]

...0-13 15:05 有空我弄一下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selec...

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

60. AnimationBase和MovieClip removeLabel问题反馈 [ 91%]

...空,则删除所有帧标签! */ __proto.removeLabel=function(label){ if (!label)this._labels=null; else if (this._labels){ for (var name in this._labels){ this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } } ----------------...

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