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

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

1051. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 49%]

...例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件 this.z...

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

1052. 【简单跑酷--JS版】---Lv.3 添加地板 [ 49%]

..."res/background.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Floor.js 开始编写代码 这里 我们想一下地板有哪些功能? 1、自身从...

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

1053. 图集打包与动画 [ 49%]

...听到的。第二问题,额~~应该是 loadAnimation(url:String, loaded:Handler = null, atlas:String = null):Animation 方法的问题。在进入游戏的时候就加载了动画需要的图集,不过json文件的。按照示例的加载动画,这个时候loadAnimation();我应该传入url...

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

1054. Animation创建和销毁的问题 [ 49%]

...画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], Handler.create(this, this.onAnimAtlasLoaded)); } } private function onAnimAtlasLoaded():void { testAnim1 = new Animation(); testAnim1.loadAnimation("res/fish_1/fish_1.ani"); Laya.stage.addChild(testAnim1); testAnim1.play(0,tr...

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

1055. list里的tweenTo(index)方法 为什么按下鼠标快速向某方向滑动的情况下想要显示的index单元格位置会有偏移,怎么控制单元格的位置 [ 49%]

...单元格的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去调用没问题,位置都是正确的,只有在按...

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

1056. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...png"; hs.width = 300; hs.pos(300, 300); hs.min = 0; hs.max = 100; hs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(hs); }); } private onChange(value: number): void { this.text.text = "滚动条的位置: value=" + value; } } 运行效果: (动图2-1) Copyright ©...

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

1057. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...ng"; vs.height = 300; vs.pos(300, 300); vs.min = 0; vs.max = 100; vs.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(vs); }); } private onChange(value: number): void { this.text.text = "滚动条的位置: value=" + value; } } 运行效果: (动图2-1) Copyright ©...

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

1058. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 49%]

...     Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4);               ...

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

1059. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 bt...

来源: Laya2.0_文档 发布时间: 20210714

1060. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 48%]

...模式都不行 //加载动画 load(aniUrl: string,emoji?:string,complete?:Handler):void{ if (emoji) { this.emoji=emoji; } if (complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet...

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