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

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

501. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

... atlasManager.getLargeTexture(0); console.log(`大纹理尺寸: ${largeTex.width} x ${largeTex.height}`); 获取所有大纹理对象 //接口 getAllLargeTextures(): LargeTexBase[] 获取所有底层大纹理对象的数组,用于调试或高级操作。 返回值:LargeTexBase 对象数组。 //...

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

502. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 62%]

...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://...

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

503. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 62%]

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

504. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Bu...

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

505. WebGL模式下,PNG图片出现类似描边的效果 [ 61%]

...改偶数值,不要出现基数或者小数点 2、将显示对象的width和height值改偶数值,不要出现基数值 可以避免黑线的产生,如果还有问题,我们再沟通! 2016-12-28 0 2 分享 微博 QZONE 微信 什么被折叠? 0 个回复被折叠 要回复问题...

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

506. drawTextures BUG [ 61%]

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

507. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 61%]

...  //设置文本显示框位置         this.text.x = Laya.stage.width / 2 -50 ;         this.text.text = "触控点归零";         //显示文本显示框                  this.text.name = "ceshi";         this.text.overflow = Laya.Text.HIDDEN;  ...

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

508. 如何设置Sprite的宽高和点击区域? [ 61%]

...被命中。   如果想要改变显示对象的大小,请使用scale,width和height无法改变显示对象的大小。   如果还有其他问题,请及时留言,我们协助您一起解决!!!      2016-04-19 2 0 分享 微博 QZONE 微信 yung 赞同来自: garve096 首先,UI...

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

509. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 61%]

...加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](http...

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

510. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 61%]

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