大约有 45 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0035 秒)
...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
...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_文档 发布时间: 20241014
...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
...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
...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