大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0078 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 this.onLibLoaded 这个,这种...
来源: Laya_社区 发布时间: 20171102
...tor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("main.scene"); } onEnable() { console.log('init'); } ...
来源: Laya_社区 发布时间: 20201110
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createParagraph(); // 代码创建 this.showExternalHTML(); // 使用外部定义的html } createParagraph() { const HTMLDivElement = Laya.HTMLDivElement; let p = new HTMLDivElement(); Laya.stag...
来源: Laya2.0_示例 发布时间: 20250227
...出现 Cannot read property 'dir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/"; 我们采用的播放模式是this.effectMovieClip.load(effectsPath,true); effectsPath 是路径 我们的swf 文...
来源: Laya_社区 发布时间: 20180408
....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布局的控件大...
来源: Laya_社区 发布时间: 20170720
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createLabel("只允许输入数字:").pos(50, 20); var input: Input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入...
来源: Laya_示例 发布时间: 20250227
... console.log(e); }); </script> 代码中使用 var pt=this.lbtn.localToGlobal(new Laya.Point(this.lbtn.x,this.lbtn.y)); pt.x -=this.lbtn.width /2; pt.y -=120; var gd=GameData.userData; this.yqm.text=gd.invCode; this.dt.text="邀请次数 "+gd.invFriends+"/99" var iframe = Browse...
来源: Laya_社区 发布时间: 20180626
...our app is compliant with the App Store Review Guidelines, please reply to this message in Resolution Center to explain how this feature works. The next submission of this app may require a longer review time, and this app will not be eligible for an expedited review until this issue is resolved. 20...
来源: Laya_社区 发布时间: 20190730
...meters brightness:Number — 亮度,范围:-100~100 ReturnsColorFilter — this adjustColor()method public function adjustColor(brightness:Number, contrast:Number, saturation:Number, hue:Number):ColorFilter 调整颜色,包括亮度,对比度,饱和度和色调 Parameters brightness:Number ...
来源: Laya2.0_api 发布时间: 20190513
...形竟然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。...
来源: Laya_社区 发布时间: 20171102