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

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

1051. tween complete 报错 以及如何判断对象正在缓动中 [ 48%]

...把 Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Laya.Handler.create(this,this.changeColor,[letterText]), i * 100); 2017-11-22 0 0 分享 微博 QZONE 微信 liner1457387450 赞同来自: 恩恩,你写的这句是基本的用法,我想用tween API里complete()立即完成...

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

1052. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 47%]

...dChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChannel); }), soundClass, startTime); }); } 我使用Promise封装了一下音效播放,正常使用await播放没啥的问题,可以做同步异步转换,出问题是的使...

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

1053. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 47%]

...t(); } private function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个...

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

1054. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 47%]

...成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个CheckBox实例cb1 var cb1 = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200)...

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

1055. 导航标签组组件 · LayaAir3.0文档 · LAYABOX [ 47%]

...rol 3"; tab.selectedIndex = 1; this.onSelect(tab.selectedIndex); tab.selectHandler = new Laya.Handler(this, this.onSelect); this.owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示:...

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

1056. 【简单跑酷--JS版】---Lv.6 终篇 [ 47%]

...播放动画 Tween.to(item, {y : -10, scaleX : 0.1, alpha : 0}, 300, null, Handler.create(this, this.itemTweenComplete, [item])); this.updateScore(); } } } } //人物如果踩到地板了 就把人物的坐标设置到地板上面 this.player.y = floor.y; //如果到地板上面的 就得重置跳...

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

1057. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 47%]

...a.loader.load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){             this.astcconfig = Laya.loader.getRes("minastc.config.json");             for(var key in this.astcconfig){                 var fileversion = Laya.ResourceVersion.manifes...

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

1058. 小游戏项目 加载有中文的json文件 报错 [ 47%]

...(600, 400); var url:String = "res/json/Sheet1.json"; Laya.loader.load(url, Handler.create(null, onJsonLoaded,[url]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工具中报错 Unex...

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

1059. laya.display.Animation [ 46%]

...否是鼠标事件。 EventDispatcher  loadAnimation(url:String, loaded:Handler = null, atlas:String = null):Animation 加载并解析由LayaAir IDE制作的动画文件,此文件中可能包含多个动画。默认帧率为在IDE中设计的帧率,如果调用过set interval,则使用此帧...

来源: laya_api 发布时间: 20170929

1060. laya.ui.ComboBox [ 46%]

...l : String 表示选择的下拉列表项的的标签。 ComboBox  selectHandler : Handler 改变下拉列表的选择项时执行的处理器(默认返回参数index:int)。 ComboBox  sizeGrid : String 当前实例的位图 AutoImage 实例的有效缩放网格数据。 数据格式:"上边...

来源: laya_api 发布时间: 20170929