大约有 218 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
...f' of null showAni(panel:Laya.Box) { if (!panel.contains(this)) { panel.addChild(this); this.pos(0,110); } let i = 1; this.ani1.play(0, false);//出错了 this.an...
来源: Laya_社区 发布时间: 20170614
... let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded); let ani_names = this.ani_names; let anies = this....
来源: Laya_社区 发布时间: 20170608
...on("ani/TX001.ani"); //动画播放完的事件 ani.on(Laya.Event.COMPLETE,this,(ani:Animation)=>{ ani.removeSelf(); ani.destroy(); },[ani]); ani.play(0,false); 2018-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20180615
...}); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下 function onLoaded(){ ...
来源: Laya_社区 发布时间: 20160801
... 2018-04-04 0 0 分享 微博 QZONE 微信 Apple 赞同来自: null改成this 2018-04-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 panle130 相关问题 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip...
来源: Laya_社区 发布时间: 20170215
...yaScene.lh")) as Sprite3D; layaScene.once(Event.HIERARCHY_LOADED, this, function():void{ var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D; var animator:Animator = meshSprite.addComponent(Animator) as Animator; var clip:AnimationClip=AnimationClip.load("...
来源: Laya_社区 发布时间: 20180208
...5:48 Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation...
来源: Laya_社区 发布时间: 20180329
...); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); } onEnable() { this.loadActor(this.actor1,"comp/r_01_...
来源: Laya_社区 发布时间: 20190730
...te _factory: Laya.Templet; constructor(spine, x, y, speed) { this._factory = new Laya.Templet(); this._factory.loadAni(`../bin/res/spine_model/${spine}.sk`); this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]); } private parseComp...
来源: Laya_社区 发布时间: 20161108
...name); item.x=60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.doworkui.addChild(item); 2017-11-06 0 0 分享 微博 QZONE 微信 ysshao 赞同来自: 实际上这些animation是存在的,我可以通过play播放的,但是就是看不叫! 2017-11-06 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171106