大约有 31 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0044 秒)
...e = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,50); this.eff1.transform.rotate(new Laya.Vector3(0, 60, 0), true, fa...
来源: Laya_社区 发布时间: 20180503
...,会报错,时间什么的数据为null,于是我添加了Laya.Event.HIERARCHY_LOADED侦听,然而去回调来运行play却发现没有回调,于是只能使用手动方式,或延时一段时间后调用play,就可以运行动画了。 附件 : --> Projects3D_2.zip 2017-04-23 添加评...
来源: Laya_社区 发布时间: 20170423
...ycity_attack1/.lh")); effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){ var particle = effect.getChildAt(0).getChildAt(0).particleSystem; particle.on(Laya.Event.COMPLETE, this, function(){ ...
来源: Laya_社区 发布时间: 20170614
...3d/ben/Export.lh"); scene.addChild(this.role3D); this.role3D.on(Laya.Event.HIERARCHY_LOADED,this,function(){ this.role3D.transform.scale = new Laya.Vector3(0.7,0.7,0.7); this.role3D.transform.position = new Laya.Vector3(0,1.2,0); } 2018-03-09 0 0 分享 微博 QZONE 微信 qian 赞同来自: 好...
来源: Laya_社区 发布时间: 20180309
...加载完成的回调事件中替换光照贴图! scene.once(Laya.Event.HIERARCHY_LOADED, this, function(){ //to do }); 2017-06-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ebaww 相关问题 2.0一不小心删了bin目录下的...
来源: Laya_社区 发布时间: 20170612
...("res/LayaScene/layaScene.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=An...
来源: Laya_社区 发布时间: 20180208
..../res/models/cike.lh"); _scene3d.addChild(_disObj3d); _disObj3d.once(Event.HIERARCHY_LOADED, null, function(sender:Sprite3D):void { var ms:MeshSprite3D = _disObj3d.getChildByName("mod_CiKeZhuangBei_Body_03") as MeshSprite3D; if(ms) { trace("length " + ms.m...
来源: Laya_社区 发布时间: 20170101
...ne.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null, checkHit); var hit = new Laya.RaycastHit(); var point = new...
来源: Laya_社区 发布时间: 20170915
..."res/h5/LayaScene_Effect/Effect.lh")) as Laya.Sprite3D; this.lz.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); }); 之前是按照ls导出的不回调,你们在线技术说场景只能用相机操作。我现在改成了Sprite3D ,lh文件 依旧不回调 2018-0...
来源: Laya_社区 发布时间: 20180327
...e3D = scene.addChild(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function() { trace("COMPLETE callback!!"); }); }); 2017-05-15 0 1 ...
来源: Laya_社区 发布时间: 20170512