大约有 982 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0053 秒)
... //平面加载 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_示例 发布时间: 20241118
... 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
...ya/d3/WebXR/core/WebXRInputManager.ts:18 Methods bindMeshNode bindMeshNode(meshSprite: Sprite3D, handness: string): void Defined in laya/d3/WebXR/core/WebXRInputManager.ts:113 绑定输入设备渲染节点 Parameters meshSprite: Sprite3D 渲染挂点 handness: string 设备名称left/right Returns ...
来源: Laya3.0_api 发布时间: 20231115
...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
...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("res/LayaScene/Assets/unit/Unit_1111-...
来源: Laya_社区 发布时间: 20180208
...刚体,创建约束,为约束绑定两个刚体 ```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