大约有 402 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0043 秒)
...cale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,但是我放到fra...
来源: Laya_社区 发布时间: 20180309
... //平面加载 let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); plane.transform.position = new Laya.Vector3(0, -2, 0); let planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/...
来源: Laya_社区 发布时间: 20201127
...原来必须使用.lm的文件才能解决第一个问题 var obj3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(Laya.Mesh.load("Assets/FBX/scene_1-default001.lm")); 这样写就可以获得材质,而lh文件则不行,然而这样写的话,又出现了Laya.Event.HIERARCHY_LOADED事件并...
来源: Laya_社区 发布时间: 20170422
...); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.png")); customMat...
来源: Laya_示例 发布时间: 20250220
... var cylinderMesh:CylinderMesh=new CylinderMesh(0.05,2,8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role....
来源: Laya_社区 发布时间: 20170904
...otBallCtrl._update (http://127.0.0.1:24812/game/code.js:94213:18) at MeshSprite3D.__proto._updateComponents (http://127.0.0.1:24812/game/code.js:70809:36) at MeshSprite3D.__proto._update (http://127.0.0.1:24812/game/code.js:86537:9) at Scene.__proto._updateChilds (http://127.0.0.1:...
来源: Laya_社区 发布时间: 20181122
...Child(new Laya.Sprite3D()); var skinMesh0 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Cube.lm"))); var skinMesh1 = rootSkinMesh.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("3d/LayaScene_/Library/unity default resources-Sphere.lm"))); ...
来源: Laya_社区 发布时间: 20170223
...X = posX || 0; posY = posY || 0; posZ = posZ || 0; var instance = new Laya.MeshSprite3D(new Laya.BoxMesh(x, y, z)); instance.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); instance.transform.position = new Laya.Vector3(posX, posY, posZ); var material = new Laya.StandardMaterial(); materi...
来源: Laya_社区 发布时间: 20180402
...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...
来源: Laya2.0_文档 发布时间: 20210715
...刚体,创建约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigid...
来源: Laya2.0_文档 发布时间: 20210714