大约有 698 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(336) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(44) Laya2.0_示例(19) Laya_示例(15)
... atlasManager.getLargeTexture(0); console.log(`大纹理尺寸: ${largeTex.width} x ${largeTex.height}`); 获取所有大纹理对象 //接口 getAllLargeTextures(): LargeTexBase[] 获取所有底层大纹理对象的数组,用于调试或高级操作。 返回值:LargeTexBase 对象数组。 //...
来源: Laya3.0_文档 发布时间: 20260131
...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://...
来源: Laya2.0_文档 发布时间: 20210714
... this.label.pos(500, 400); this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000"; this.label.zOrder=9980 Laya.stage.addChild(this.label); ...
来源: Laya_社区 发布时间: 20190514
...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Bu...
来源: Laya2.0_文档 发布时间: 20210714
...改为偶数值,不要出现基数或者小数点 2、将显示对象的width和height值改为偶数值,不要出现基数值 可以避免黑线的产生,如果还有问题,我们再沟通! 2016-12-28 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...
来源: Laya_社区 发布时间: 20161228
...his._inner_drawTexture(tex, bmpid, pos[ipos++] + tx, pos[ipos++] + ty, tex.width, tex.height, null, null, 1.0, false); 附件 : --> 2022-06-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_z 赞同来自:...
来源: Laya_社区 发布时间: 20220622
... //设置文本显示框位置 this.text.x = Laya.stage.width / 2 -50 ; this.text.text = "触控点归零"; //显示文本显示框 this.text.name = "ceshi"; this.text.overflow = Laya.Text.HIDDEN; ...
来源: Laya_社区 发布时间: 20190605
...被命中。 如果想要改变显示对象的大小,请使用scale,width和height无法改变显示对象的大小。 如果还有其他问题,请及时留言,我们协助您一起解决!!! 2016-04-19 2 0 分享 微博 QZONE 微信 yung 赞同来自: garve096 首先,UI...
来源: Laya_社区 发布时间: 20160419
...加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](http...
来源: Laya2.0_文档 发布时间: 20210715
...eateFromTexture(this.bgTexture,32*29,0,32,96), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); break; default: //随机计算一个宽度 当然 最小是3倍 以...
来源: Laya_社区 发布时间: 20160801