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

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

1011. laya.display.Animation [ 54%]

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

来源: Laya2.0_api 发布时间: 20190513

1012. 图集资源clearRes清除之后下次再用到load时加载失败 [ 54%]

...tring):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearImg(url:string):void { Laya.Loader.clearRes(url); } 2018...

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

1013. 生成的粒子特效怎么设置colorComponentInter无效? [ 54%]

...adImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settings); sp.emitter.start(); sp.play(); sp.x = 90; sp.y = 55; this.add...

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

1014. layaair 2.0 在构造函数中获取基类的组件,报错说未定义。 [ 54%]

...ameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错,说PB未定义,但是放在onEnable中是正常的,难道在执行完父类构造...

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

1015. 如何加载.lh文件 [ 54%]

...名字.lh"}, {url:"同上.lh"},  {url:"同上"},  {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 灬倪先森_ 相关问题 2.0一不小心删了bin目录下的某个场...

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

1016. AS类中初始化JS类相关问题 [ 54%]

...在bin/h5目录下 下面是代码:   Laya.loader.load("Base.min.js", Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{ //加载完回调 //__JS__('window.eval(data + "//# sourceURL=" + "Base.min.js")'); //new需要的类   //_base = new Browser.window.Base(); _base = __J...

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

1017. 关于stage的size问题 [ 54%]

...aya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉...

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

1018. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 54%]

...来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

1019. 关于Matrix4x4的getForward方法 [ 54%]

...一个showSlotSkinByName(slotName:String, name:String)方法 源代码中Handler中的setTo()方法 laya里面有没有通过一个类的名字(字符串)来获取该类的方法?类似get class by name ts如何通过文件集加载的方法预加载声音文件,然后再调用 问题状态 最...

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

1020. 音频无法播放 [ 54%]

...播放 Laya.SoundManager.playMusic('res/sound/'+'fail'+'.wav',1, new Laya.Handler(null,function(){ alert('123') })); 在chrome下 提示图片这个警告,,,手机上也没有声音 附件 : --> 2018-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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