大约有 401 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0047 秒)
... = new Vector3(0, -1.0, -1.0); directionLight.shadow = true; var QiPanMesh:MeshSprite3D = new MeshSprite3D(Mesh.load("qipan/qipan-qipan.lm"), "qipan"); QiPanMesh.transform.position = new Vector3(0, 0, -1); QiPanMesh.transform.rotation = new Quaternion(-1, 0, 0, 1); QiPanMesh.layer = Layer.getLayerBy...
来源: Laya_社区 发布时间: 20170617
...d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher Object TerrainMeshSprite3D 类用于创建网格。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefi...
来源: laya_api 发布时间: 20170929
...on (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.meshFilter.sharedMesh; mesh.once(Laya.Event.LOADED, null, function (mesh) { for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var material =...
来源: Laya_社区 发布时间: 20161021
...rayCast、rayCastAll。 **在LayaAir中使用Cannon.js** - 1.创建盒型MeshSprite3D ```typescript var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody: CannonRi...
来源: Laya2.0_文档 发布时间: 20210714
... }); })); } function setMaterials(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite = spirit3D; for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat = meshSprite.meshRender.sharedMaterials[i]; mat.disableLight(); } } for (var i = 0; i < spirit3D._chi...
来源: Laya_示例 发布时间: 20241118
...a.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Lay...
来源: Laya_示例 发布时间: 20241118
...相关的链接 提交 1 个回复 180*****998 赞同来自: var box:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)))as Laya.MeshSprite3D; 现在好像变了 要这么创建了 2019-05-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20190213
...egory=3d&group=Material&name=EffectMaterialDemo)): ```typescript var earth:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere())) as MeshSprite3D; earth.transform.position = new Vector3(0, 0, 0); //创建EffectMaterial材质 var material:EffectMaterial = new EffectMaterial(); ...
来源: Laya2.0_文档 发布时间: 20210715
...w'); receiveShadowgroup._children.forEach(_model => { //(_model as Laya.MeshSprite3D).meshRenderer.castShadow = true; (_model as Laya.MeshSprite3D).meshRenderer.receiveShadow = true; }); castShadowgroup._children.forEach(_model => { (_model as Laya.MeshSprite3D).meshRenderer.castShadow = true;...
来源: Laya_社区 发布时间: 20190813
...子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过...
来源: Laya_社区 发布时间: 20170505