大约有 83 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
...s3ds:{[key:string]:s3d;} = {}; static news3d(id):s3d{ return x.s3ds[id].clone() as s3d;//s3d.instantiate(x.s3ds[id]); } static loads3d(id, path, handler=null):void{ s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); } 我首...
来源: Laya_社区 发布时间: 20191004
...; i++){ var ball = myscene.addChild(sp.clone()); ball.name = i.toString(); } console.log("add finished: ", myscene.numChildren); for(var i=0; i&...
来源: Laya_社区 发布时间: 20200723
...Model/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 Vector3( -0.6, 0, 0))) as Sprite3D; 上图...
来源: Laya_社区 发布时间: 20181017
...隆 关于克隆,LayaAir3D中提供了几种接口。比较常用的是clone方法 /** * 克隆。 * @return 克隆副本。 */ clone(): Node { var dstSprite3D: Node = Sprite3D._createSprite3DInstance(this); Sprite3D._parseSprite3DInstance(this, dstSprite3D, this, dstSprite3D); return dstSprite3D;...
来源: Laya3.0_文档 发布时间: 20251010
...anfuyu=scene.getChildByName('bianfuyu') that.ss=fuzhi(bianfuyu); //clone() that.tt=ss.getComponentByIndex(0); // tt = animator tt.playbackRate =5 ; //不会起作用 console.log(tt.currentKeyframeIndex) //输出为-1 上述...
来源: Laya_社区 发布时间: 20170718
...ieAnimator.on is not a function 创建模型以后,调用destroy,以前clone的对象也消失了 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! laya支持批处理调用js压缩吗? Laya.Scene.open打开的对话框中如何在关闭的时...
来源: Laya_社区 发布时间: 20180107
...及加载所有资源都失败 创建模型以后,调用destroy,以前clone的对象也消失了 调用动画结束on方法,报错this.zombieAnimator.on is not a function Laya.Scene.open打开的对话框中如何在关闭的时候调用父Scene中的方法 Laya2.1.0 JS调用Java PlatformClass...
来源: Laya_社区 发布时间: 20170411
...sphereCollider.center = sphere.meshFilter.sharedMesh.boundingSphere.center.clone(); sphereCollider.radius = sphere.meshFilter.sharedMesh.boundingSphere.radius; sphere.name = "球体"; //圆柱体 var cylinder = scene.addChild(new Laya.MeshSprite3D(new Laya.CylinderMesh(0.25, 1))); var cylinderMat = ...
来源: Laya_示例 发布时间: 20251130
...PrimitiveMesh.createBox(1, 1, 1)); let cube_2 = cube_.clone() as Laya.MeshSprite3D; scene_.addChild(cube_2); cube_2.transform.translate(new Laya.Vector3(0,0,-5)); scene_.addChild(spotLight_); scene_.addChild(came...
来源: Laya_社区 发布时间: 20200506
...MeshSprite3D(Laya.PrimitiveMesh.createQuad(1,1)) let b:Laya.MeshSprite3D=a.clone() as Laya.MeshSprite3D scene.addChild(a) scene.addChild(b) 附件 : --> 2019-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 La...
来源: Laya_社区 发布时间: 20190925