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

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

1. 动画-图集动画 [ 100%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Animation = Laya.Animation; var Stage = Laya.Stage; var Rectangle = Laya.Rectangle; var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var AniConfPath = "../../res/fighter/...

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

2. 灯光-方向光 [ 93%]

...OADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025...

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

3. 灯光-点光 [ 91%]

...OADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Qu...

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

4. 灯光-聚光 [ 90%]

...OADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaternion(); var _position = new Laya.Vector3(); Laya.timer.frameLoop(1, null, function () { Laya.Q...

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

5. 动画-新版骨骼动画 [ 87%]

...h")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Lay...

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

6. 加载-销毁Texture使用的图片资源 [ 86%]

...高效。var leo; (function (leo) { var Sprite = laya.display.Sprite; var Animation = laya.display.Animation; var Text = laya.display.Text; var Stage = laya.display.Stage; var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var WebGL = laya.webgl.WebGL; var Event = laya.events.Event; /** *...

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

7. 性能测试-卡通人物2 [ 84%]

...ar Stat = Laya.Stat; var WebGL = Laya.WebGL; var Sprite = Laya.Sprite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation...

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

8. 高级应用-寻路导航 [ 79%]

...")); this.layaMonkey.transform.localScale = new Laya.Vector3(5, 5, 5); var animator = (this.layaMonkey.getChildAt(0)).getComponentByType(Laya.Animator); var totalAnimationClip = animator.getClip("Take_001"); animator.addClip(totalAnimationClip, "walk", 40, 70); animator.play("walk", 2.5); //初始...

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

9. 混合模式-Lighter [ 70%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Animation = Laya.Animation; var Stage = Laya.Stage; var Browser = Laya.Browser; var Handler = Laya.Handler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; // 一只凤凰的分辨率是550 * 400 var phoenixWidth = 550; var pho...

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

10. 动画-旧版骨骼动画 [ 69%]

...sets/Zombie/Model/z@back_fall-back_fall.lsani" ]; //遍历节点,添加SkinAnimation动画组件 function addSkinComponent(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var skinAni = meshSprite3D.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.Animat...

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