大约有 251 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
...们就可以通过getRes(.lh)得到这个资源的原型对象,即一个Sprite3D对象,这个原型对象就是你这个特效的“根”,它如果被destry(true),者与这个特效相关的所有资源都会被destry,包括纹理、模型、动画,即会释放出内存。如果你只...
来源: Laya_社区 发布时间: 20180814
...ne.lh", Laya.Handler.create(this, function(){ var layaMonkey =Laya.Sprite3D.load("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform...
来源: Laya_社区 发布时间: 20171212
...lass ShuriKenParticle3D ShuriKenParticle3D 3D粒子。 Hierarchy RenderableSprite3D ShuriKenParticle3D Index Constructors constructor Properties _extra _scene _url name tag LIGHTMAP LIGHTMAPSCALEOFFSET LIGHTMAP_DIRECTION PICKCOLOR REFLECTIONCUBE_HDR_PARAMS REFLECTIONCUBE_PROBEBOXMAX REFLECTIONCUBE_P...
来源: Laya3.0_api 发布时间: 20231115
发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办? 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办?复制出来的静态物件都会新...
来源: Laya_社区 发布时间: 20200612
...ild(Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Sprite3D; //克隆sprite3d layaMonkey_clone1 = Sprite3D.instantiate(layaMonkey, scene, false, new Vector3(0.6, 0, 0)); //克隆sprite3d layaMonkey_clone2 = scene.addChild(Sprite3D.instantiate(layaMonkey, null, false, new Vect...
来源: Laya_社区 发布时间: 20181017
...Sprite时,不能将3D节点作为其属性值。当设置为3D节点Laya.Sprite3D时,不能将2D节点作为其属性值。 4.1.1 2D节点的使用 首先,如动图4-1所示,将场景中已经添加好的2D节点Sprite拖入到@property暴露的属性入口中,这样就获取到了此节...
来源: Laya3.0_文档 发布时间: 20251010
animator销毁的BUG 对一个sprite3D添加animator组件,之后马上删除,就会抛出上面的错误。 目前是在销毁前把这个节点从父节点删掉,避免destroy,规避这个异常,希望下个版本能修复。 附件 : --> 2017-07-23 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170723
...机场景,以及两个粒子特效。在laya中代码如下: this._createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Lay...
来源: Laya_社区 发布时间: 20180403
..._path = UrlConfig.EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ ...
来源: Laya_社区 发布时间: 20180601
...下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play(); 这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair调试器中也很明...
来源: Laya_社区 发布时间: 20180425