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

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

1251. 文本-HTML文本 [ 84%]

...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_示例 发布时间: 20260303

1252. 播放swf动画的时候,会出现 Cannot read property 'dir' of undefined崩溃 [ 84%]

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

1253. UI界面加载有哪些回调方法可用 [ 84%]

....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布局的控件大...

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

1254. 文本-字符限制 [ 84%]

...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_示例 发布时间: 20260303

1255. 面板容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100, 100); this.panel.size(200, 200); this.panel.scrollType = Laya.ScrollType.Both; //滚动类型:水平与垂直都滚动 this.panel.vScrollBarSkin = "atlas/comp/vscroll.png"; this.panel.hScrollBarSkin = "atl...

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

1256. Laya下怎么实现复制 [ 84%]

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

1257. 苹果审核被打回 [ 84%]

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

1258. laya.filters.ColorFilter [ 84%]

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

1259. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 84%]

...形竟然不重合?? 我使用一个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

1260. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 84%]

...e("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = L...

来源: Laya2.0_文档 发布时间: 20210715