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

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

41. Laya中的宏编译要怎么用啊 [ 53%]

...ain extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_L...

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

42. 浏览器接口 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...ntent, url);// 此处最好加延迟 //监听器注册 Laya.Browser.window.addEventListener("click", (event: any) => { console.log(event.type); }) Window.open() 方法、window.postMessage()方法、Window.addEventListener()方法 3.3 container 画布 LayaAir引擎里可以通过 Laya.Browser.con...

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

43. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 51%]

...tSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = ne...

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

44. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...xhr.responseType = 'blob'; // 监听下载过程中的 progress 事件 xhr.addEventListener('progress', function (event: any) { if (event.lengthComputable) { // 计算下载的百分比 var percent = (event.loaded / event.total) * 100; console.log('下载进度: ' + percent.toFixed(2) + '%'); } }); ...

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

45. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 47%]

...tSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = ne...

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

46. 微信小游戏加载资源问题 [ 30%]

...Type = function (value) { }; node.setFontFace = function (value) { }; node.addEventListener = function (value) { }; node.contains = function (value) { return null; }; node.removeChild = function (value) { }; return node; } static createShaderCondition(conditionScript) { var func = function () { retu...

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