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

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

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

...BloodBar = function() { bloodBar = new Sprite(); bloodBar.loadImage("../../res/cartoon2/blood_1_r.png"); bloodBar.x = 20; this.addChild(bloodBar); } Character.prototype.createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize ...

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

2. UI-ScrollBar [ 97%]

...SHOWALL; Laya.stage.bgColor = "#232628"; var 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", ".....

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

3. 加载-单一类型资源加载 [ 97%]

...aya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["../../res/apes/monkey0.png", "../../res/apes/monkey1.png", "../../res/apes/monkey2.png"], Handler.create(this, o...

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

4. UI-Tree [ 96%]

...call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的背景。2帧:悬停时背景、选中时背景。 selectBox.height =...

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

5. UI-Slider [ 95%]

...SHOWALL; Laya.stage.bgColor = "#232628"; var 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, onLoadComplete)); })(); function onLoadComplete() { pl...

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

6. UI-Button [ 95%]

...de = Stage.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_示例 发布时间: 20241117

7. UI-CheckBox [ 94%]

...ode = Stage.SCALE_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.c...

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

8. UI-Input [ 92%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; 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, onLoadComplete)); //加载资源。 })(); function onLoadComplete(...

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

9. 动画-旧版骨骼动画 [ 92%]

...ctor3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/old/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.tran...

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

10. 材质-BlinnPhong-高光贴图 [ 92%]

...his.rotation = new Laya.Vector3(0, 0.01, 0); this.specularMapUrl = ["../../res/threeDimen/skinModel/dude/Assets/dude/headS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/jacketS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/pantsS.png", "../../res/threeDimen/skinModel/dude/Assets/du...

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