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

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

11. 屏幕适配-缩放-No Border [ 83%]

...ect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; expo...

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

12. 屏幕适配-缩放-Show All [ 83%]

...ect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; expo...

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

13. 屏幕适配-缩放-Extract Fit [ 83%]

...ect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; expo...

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

14. 屏幕适配-缩放-No Border [ 82%]

...is.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya...

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

15. 屏幕适配-缩放-No Scale [ 82%]

...is.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya....

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

16. laya.ui.UIUtils [ 82%]

...ray[static] 用字符串填充数组,并返回数组副本。 UIUtils  gray(traget:Sprite, isGray:Boolean = true):void[static] 给指定的目标显示对象添加或移除灰度滤镜。 UIUtils  toColor(color:uint):String[static] 转换uint类型颜色值为字符型颜色值。 UIUtilsPubli...

来源: Laya2.0_api 发布时间: 20190513

17. laya.ui.UIUtils [ 82%]

...ray[static] 用字符串填充数组,并返回数组副本。 UIUtils  gray(traget:Sprite, isGray:Boolean = true):void[static] 给指定的目标显示对象添加或移除灰度滤镜。 UIUtils  toColor(color:uint):String[static] 转换uint类型颜色值为字符型颜色值。 UIUtilsPubli...

来源: laya_api 发布时间: 20170929

18. 屏幕适配-缩放-Extract Fit [ 82%]

...is.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = L...

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

19. 屏幕适配-缩放-Show All [ 82%]

...is.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya...

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

20. 屏幕适配-自动横屏 [ 81%]

... var text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Te...

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