大约有 189 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)
为模型指定地形材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); ...
来源: Laya_社区 发布时间: 20170615
...ethods Show Inherited Public Methods MethodDefined By MeshFilter(owner:MeshSprite3D) 创建一个新的 MeshFilter 实例。 MeshFilter _destroy():void[override] MeshFilter event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 Even...
来源: laya_api 发布时间: 20170929
...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
...typescript //新建一个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球...
来源: Laya2.0_文档 发布时间: 20210714
...l有demo吗? 我这里怎么调都是单一色块呢? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.Bli...
来源: Laya_社区 发布时间: 20181030
...图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", La...
来源: Laya2.0_文档 发布时间: 20210715
...(null, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.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; ea...
来源: Laya2.0_文档 发布时间: 20210715
...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
...m() * 0.75 + 0.25; var sZ:int = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; //创建刚体碰撞器 var rigidBody:Rigidbody3D = box.addComponent(Rigidbody3D); //创建盒子形...
来源: Laya2.0_文档 发布时间: 20210714
...定义模型 Laya.URL.basePath="http://192.168.8.104:8080/" var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.1, 0.1, 0.1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.StandardMaterial = new Laya.Standar...
来源: Laya_社区 发布时间: 20180312