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

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

1. 灯光-方向光 [ 100%]

...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_示例 发布时间: 20241118

2. 灯光-点光 [ 99%]

...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_示例 发布时间: 20241118

3. 灯光-聚光 [ 98%]

...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_示例 发布时间: 20241118

4. 动画-新版骨骼动画 [ 97%]

...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_示例 发布时间: 20241118

5. 动画-图集动画 [ 93%]

...种开发语言、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_示例 发布时间: 20241118

6. 高级应用-寻路导航 [ 91%]

...")); 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_示例 发布时间: 20241118

7. 动画-SWF动画 [ 88%]

...ge; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string = "../../res/swf/dragon.swf"; private MCWidth: number = 318; private MCHeight: number = 406; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Bro...

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

8. 照相机-3D空间转2D空间 [ 81%]

...a.Image("../../res/threeDimen/monkey.png")); Laya.timer.frameLoop(1, this, animate); } var _position = new Laya.Vector3(); var _outPos = new Laya.Vector3(); var scaleDelta = 0; function animate() { _position.x = Math.sin(scaleDelta += 0.01); layaMonkey3D.transform.position = _position; camera.viewpo...

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

9. 性能测试-虫子(慎入) [ 80%]

...a.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggots() { var maggotContainer; for (var i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya { import Sprite = Laya.Sp...

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

10. Sprite3D-Sprite3D变换 [ 79%]

... null, false, new Laya.Vector3(0.6, 0, 0))); Laya.timer.frameLoop(1, this, animate); } var _position = new Laya.Vector3(-0.6, 0, 0); var _rotate = new Laya.Vector3(0, 1, 0); var _scale = new Laya.Vector3(); var scaleDelta = 0; var scaleValue = 0; function animate() { scaleValue = Math.sin(scaleDelta...

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