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

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

1091. 基础使用与构成 · LayaAir3.4 · 引擎文档 · 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

1092. 文本-自动调整文本尺寸 [ 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_示例 发布时间: 20260303

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

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

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

1094. 滤镜-模糊滤镜 [ 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_示例 发布时间: 20260303

1095. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF"...

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

1096. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 86%]

....stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628";   this.loadFont(); }   loadFont() { const  BitmapFont = Laya.BitmapFont, Handler = Laya.Handler;   Laya.loader.load([{     url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => { ...

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

1097. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 86%]

...子不旋转的时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); th...

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

1098. 图片设置mask有毛边 [ 86%]

...w Laya.Image(); tmpMask.anchorX = 0.5; tmpMask.anchorY = 0.5; tmpMask.size(this.hexaSize.w, this.hexaSize.h); tmpMask.pos(v.x, v.y); tmpMask.loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask...

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

1099. 粒子中引用的图片能合图吗 [ 86%]

....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {     let part = new Laya.Particle2D(data);    ...

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

1100. 手指点击list中的一个Item点击没反应 反复测试 发现 就是 手指稍微动一点就会点不住 手指 肯定没有鼠标精确度高 [ 86%]

...tage.mouseY;         var mouseX=Laya.stage.mouseX;         this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-this._lastPoint.x);         if (this._clickOnly){             //TODO vison 2019/5/9             if (Math.abs(this._lastOffs...

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