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

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

1. 输入设备-指南针 [ 100%]

...andler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(th...

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

2. UI-TextArea [ 90%]

...e; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; expo...

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

3. UI-RadioGroup [ 75%]

...oGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selectHandler = new Handler(this, this.onSelectCha...

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

4. 性能测试-卡通人物2 [ 63%]

... Animation(); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); this.addChild(this.animation); } createBloodBar() { const Sprite = Laya.Sprite; this.bloodBar = new Sprite(); this.bloodBar.loadImage("res/cartoon2/blood_1_r.png"); this.bloodBar.x = 20; this.addCh...

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