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

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

1081. UI-TextArea [ 86%]

...ge.bgColor = "#232628"; Stat.show(); Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(...

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

1082. 微信飞机大战中“开始页面”逻辑功能关于js继承问题 [ 86%]

...的时候,AS新建了GameStart并 extends GameStartUI,然后直接用this改按钮的状态; 问题: 我用JS的时候找了下用class可以实现extends的效果,但不知道怎么写,就是改变不了按钮的状态,请问这块用JS要怎么写呢,我只能写到以下这一步...

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

1083. Sprite的destroy [ 86%]

Sprite的destroy destroyChildren() { if (this._children) { for (var i = 0, n = this._children.length; i < n; i++) { this._children[0].destroy(true); } } 这几行代码来自laya.core.js的12544行开始的,for循环里的this._children[0]是不是应该是this._children[i]?还是我的使用...

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

1084. 照着官方文档写的 Dialog 报错? [ 86%]

...r LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype...

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

1085. wx.getFileSystemManager is not a function [ 86%]

...的场景 physics3D is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function api readFile success callback function undefined 用微信开发者调试的时候出现document.createTextNode is not a function ide导出ui时,UI代码显示不正常在小游戏中...

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

1086. ts怎么调用input file弹框选择本地文件 [ 86%]

...         }             }              var _this:* = this;              fileReader.onload = function(evt):void              {                  if(Browser.window.FileReader.DONE==fileReader.readyState)               ...

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

1087. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...类设备上的一致性与可用性。 代码中的使用示例如下: this.xx.left = 0; this.xx.right = 0; this.xx.top = 0; this.xx.bottom = 0; this.xx.CenterX = 0; this.xx.CenterY = 0; 3.2 数据源dataSource 在实际开发中,从网络获取的数据有时候与 UI 组件预期的数据结...

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

1088. 文本-自动调整文本尺寸 [ 86%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { const Text = Laya.Text; // 该文本自动适应尺寸 var autoSizeText = this.createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthL...

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

1089. 节点销毁问题 [ 86%]

...但是我在laya里,用的js,我定义了一个全局变量,setbtn = this.setbtn;  这里的this.setbtn其实是在UI界面里定义的setbtn,赋给setbtn全局的, setbtn.on(Event.MOUSE_UP,this,this.onSet);  这个做了事件监听。。现在我想移除当前界面,那么这个全...

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

1090. 滤镜-模糊滤镜 [ 86%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { var ape = new Sprite(); ape.loadImage(apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applayFilter(...

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