大约有 189 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0036 秒)
...块生成路径点 initPath(this.scene); //获取可行走区域模型 var meshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap'); //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/...
来源: Laya_示例 发布时间: 20241118
...I DocumentationAll Packages | All Classes | Index | Frames No Frames MeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshSprite3DInheritanceMeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses MeshTerrainSpr...
来源: laya_api 发布时间: 20170929
... new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0...
来源: Laya_示例 发布时间: 20241118
...ector3(1, -1, -1); //加载网格 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
... new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0...
来源: Laya_示例 发布时间: 20241118
...sTexture_Alpha; var barrel = scene.getChildByName("Wooden_Barrel") as Laya.MeshSprite3D; var barrel1 = scene.getChildByName("Wooden_Barrel (1)") as Laya.MeshSprite3D; var barrel2 = scene.getChildByName("Wooden_Barrel (2)") as Laya.MeshSprite3D; var barrel3 = scene.getChildByName("Wooden_Barrel (3)")...
来源: Laya2.0_文档 发布时间: 20210714
...创建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/gras...
来源: Laya2.0_文档 发布时间: 20210714
MeshSprite3D.meshRender.boundingBox的用法 MeshSprite3D.meshRender.boundingBox这个获取的是啥呀?看之前有人提问过如何获取模型的长宽高,然后回复的是用这个方法,这个方法返回的max和min是什么意思,跟模型的长宽高有关系吗,麻烦大神指...
来源: Laya_社区 发布时间: 20170831
... //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(2, 2, 2))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D...
来源: Laya_社区 发布时间: 20180427
...(null, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1....
来源: Laya2.0_文档 发布时间: 20210715