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

大约有 46 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0022 秒)

1. 性能测试-卡通人物2 [ 100%]

...开发更高效。let amount = 500, character1 = [ "res/cartoon2/yd-6_01.png", "res/cartoon2/yd-6_02.png", "res/cartoon2/yd-6_03.png", "res/cartoon2/yd-6_04.png", "res/cartoon2/yd-6_05.png", "res/cartoon2/yd-6_06.png", "res/cartoon2/yd-6_07.png", "res/cartoon2/yd-6_08.png", ], character2 = [ "res/ca...

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

2. 加载-单一类型资源加载 [ 98%]

...Mode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; // 加载一张png类型资源 Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["res/apes/monkey0.png", "res/apes/monkey1.png", "res/apes/monkey2.png"], H...

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

3. UI-ScrollBar [ 97%]

...LL; Laya.stage.bgColor = "#232628"; skins = []; skins.push("res/ui/hscroll.png", "res/ui/hscroll$bar.png", "res/ui/hscroll$down.png", "res/ui/hscroll$up.png"); skins.push("res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png"); Laya.loader.load(skins, Hand...

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

4. UI-Tree [ 96%]

...; Laya.stage.bgColor = "#232628"; Stat.show(); let res = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, Handler.crea...

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

5. 加载-加载序列 [ 96%]

....SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 Laya.loader.maxLoader = 1; Laya.loader.load("res/apes/monkey2.png", Handler.create(this, this.onAssetLoaded), null, null, 0, false); Laya.loader.load("r...

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

6. UI-Button [ 95%]

....SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = [ "res/ui/button-1.png", "res/ui/button-2.png", "res/ui/button-3.png", "res/ui/button-4.png", "res/ui/button-5.png", "res/ui/button-6.png" ]; // 计算将Button至于舞台中心的偏移量 xOffset = (Laya.stage.width - HORIZONTAL_SPACING * (C...

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

7. UI-CheckBox [ 95%]

...ALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["res/ui/checkbox (1).png", "res/ui/checkbox (2).png", "res/ui/checkbox (3).png", "res/ui/checkbox (4).png", "res/ui/checkbox (5).png", "res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, this.onCheckBoxSkinLoaded)); } onCheck...

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

8. UI-Slider [ 95%]

...e.bgColor = "#232628"; Stat.show(); skins = []; skins.push("res/ui/hslider.png", "res/ui/hslider$bar.png"); skins.push("res/ui/vslider.png", "res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { this.placeHSlider(); this.placeVSlider(); }...

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

9. UI-Input [ 93%]

...L; Laya.stage.bgColor = "#232628"; Stat.show(); skins = ["res/ui/input (1).png", "res/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { //...

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

10. Sprite-屏幕截图 [ 91%]

...= Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nameArr = ["canvas截图","sprite截图","清理"]; this._canvas = null; this.aimSp = null; this.drawImage = null; this.drawSp = null; this.monkeyTex...

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