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

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

1. 鼠标交互-鼠标交互 [ 100%]

...is, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, mouseHandler); rect.on(Event.RIGHT_CLICK, this, mouseHandler); rect.on(Event.MOUSE_MOVE, this, mouseHandler); rect.on(Event.MOUSE_OVER, this, mouseHan...

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

2. UI-Tree [ 96%]

...2", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_tree_folder.png", "clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width"...

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

3. 屏幕适配-屏幕适配 [ 85%]

...age(); boy1.skin = "../../res/cartoonCharacters/1.png"; boy1.top = 0; boy1.right = 0; boy1.on("click", this, onBoyClick); Laya.stage.addChild(boy1); //实例一个小人,放到右下角,并相对布局 var boy2 = new Image(); boy2.skin = "../../res/cartoonCharacters/2.png"; boy2.bottom = 0; boy2...

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

4. 文本-下划线 [ 80%]

... null, 100, 10); createText('center', 2, "#00BFFF", 155, 150); createText('right', 3, "#FF7F50", 210, 290); } function createText(align, underlineWidth, underlineColor, x, y) { var txt = new Text(); txt.text = "Layabox\n是HTML5引擎技术提供商\n与优秀的游戏发行商\n面向AS/JS/TS开发...

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

5. 动画-旧版骨骼动画 [ 78%]

...l.lsani", "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@right_fall-right_fall.lsani", "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@back_fall-back_fall.lsani" ]; //遍历节点,添加SkinAnimation动画组件 function addSkinComponent(spirit3D) { if (spirit3D in...

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

6. 缓动-时间线 [ 71%]

...target.pos(100,100); } function createTimerLine() { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, s...

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

7. 鼠标交互-修正交互区域 [ 69%]

... Text(); logger.size(Laya.stage.width, Laya.stage.height); logger.align = 'right'; logger.fontSize = 20; logger.color = "#FFFFFF"; Laya.stage.addChild(logger); } /**侦听处理方法*/ function onDown(e) { logger.text += "点击 - " + e.target.name + "\n"; } })();module laya { import Sprite = Laya....

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

8. 动画-新版骨骼动画 [ 68%]

...UI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/...

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

9. 射线检测-碰撞器混合 [ 58%]

...transform.translate(this._tempUnitX3); else if (e.keyCode == Laya.Keyboard.RIGHT) this.layaMonkey.transform.translate(this._tempUnitX4); } function drawCollider() { if (!this.debug) { this.collider.active = false; this.layaMonkeyMeshSprite3D.removeComponentByType(DrawBoxColliderScript); this.debug =...

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