大约有 20 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0023 秒)
...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
...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
...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
...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
...种开发语言、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
...")); 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
...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
...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
...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
... 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