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

大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)

61. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...en((templet: Laya.Templet) => { //创建模式为1,可以启用换装 this.mArmature = templet.buildArmature(0); this.mArmature.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放...

来源: Laya3.0_文档 发布时间: 20251010

62. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 81%]

... onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.ad...

来源: Laya_社区 发布时间: 20180911

63. 加载学堂3D角色资源,播放动画异常 [ 81%]

...加载学堂3D角色资源,播放动画异常   //创建男角色模型 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scen...

来源: Laya_社区 发布时间: 20180725

64. Animtor是否支持单独控制每个动画的播放速度? [ 80%]

....speed = 0.4f; anim.Play("change_out"); Laya里面我的代码如下 ani = this.scene.getChildByName("cha1").getComponentByType(Laya.Animator); //正常播放动画 ani.play("change_out", 0.2);   请问,有相关API对播放速度单独设置吗?   另外补问一下,Laya的动画融合大...

来源: Laya_社区 发布时间: 20180612

65. 高级应用-寻路导航 [ 80%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this._position = new Laya.Vector3(0, 0, 0); this._upVector3 = new Laya.Vector3(0, 1, 0); this._tarPosition = new Laya.Vector3(0, 0, 0); this._finalPosition = new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion();...

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

66. Animation创建时无法获取高度 [ 80%]

...无法获取高度 var roleAni = new Laya.Animation(); roleAni.loadImages( this.aniUrls( v1, v2, tip, frames ) ).play(); roleAni.pos(x,y); this.root.addChild( roleAni ); roleAni.pivotY = roleAni.getBounds().height; console.log("---> ", roleAni.getBounds() ); 打印为 ---> Rectangle {x: 0, y:...

来源: Laya_社区 发布时间: 20170824

67. 获取Sprite位置问题 [ 80%]

...extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Laya.Rectang...

来源: Laya_社区 发布时间: 20180427

68. tweenline label事件诡异 [ 80%]

tweenline label事件诡异 this.timeLine.addLabel("rotate1",0).to(this.godContaner,{rotation:-5},200,null,0) .addLabel("rotate2",0).to(this.godContaner,{rotation:0},200,null,0); this.timeLine.play(0,true); this.timeLine.on("label", this, function(label){ console.log(label) }); 两个问题 1 为...

来源: Laya_社区 发布时间: 20170310

69. [LayaAirIDE3]关于GMovieClip的使用方式 [ 80%]

...不希望他一进入场景就播放,所以我在onAwake里面设置了this.ani1.autoPlay = false ,但设置无效,动画还是进入场景就播放 而后我在动画状态机里面吧Play on Wake取消掉了,动画就不会自动播放了,但是我看了GMovieClip组件文档,没有play...

来源: Laya_社区 发布时间: 20251120

70. Animation创建和销毁的问题 [ 80%]

... Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; tes...

来源: Laya_社区 发布时间: 20180424