大约有 222 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0038 秒)
...实是一个box,只不过高度很小,可看成一个平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(4,4,0.001))) as MeshSprite3D; var material:StandardMaterial = new StandardMaterial(); material.albedo = new Vector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Textur...
来源: Laya_社区 发布时间: 20161223
...图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(200, 50, 1, 1))); plane.transform.translate(new Laya.Vector3(0, -0.4, 0)); var material1 = new Laya.StandardMaterial(); material1.diffuseTexture = Laya.Texture2D.load("http://192.168.1.41/brick...
来源: Laya_社区 发布时间: 20180125
...m.rotate(new Vector3(-30, 0, 0), true, false); //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加c...
来源: Laya_社区 发布时间: 20190417
.../res/threeDimen/staticModel/simpleScene/B00IT001M000.v3f.lh") 和 new Laya.MeshSprite3D(Laya.Mesh.load("nvXia/A02P1V1F001AX01@yequangongjinv-DEFAULT0.lm")) 这样创建的区别是什么,.lh和.lm这两种文件格式的区别是什么,什么时候用的是.lh什么时候用的是.lm,谢谢 20...
来源: Laya_社区 发布时间: 20161219
...子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过...
来源: Laya_社区 发布时间: 20170505
.../添加自定义模型 //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){ //Laya.Sprite3D.load("res/laya...
来源: Laya_社区 发布时间: 20190514
...ion = new Vector3( 1, 1, 0 ); 可以類似這樣寫 var Mesh_Boss = new MeshSprite3D( Mesh.load( Consts.Mesh_Boss01 ) ) as MeshSprite3D; Mesh_Boss.transform.localPosition = new Vector3( -7.36, -1.03, 0 ); 2017-07-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20170726
...estSceneUI { private newScene:Laya.Scene3D; private boxA: Laya.MeshSprite3D; constructor() { super(); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); ...
来源: Laya_社区 发布时间: 20210103
...于3D动画的问题 unity导出的,动画文件为 .lsani 问题1:为MeshSprite3D添加Laya.SkinAnimations组件后,物体就不显示了(也许是跑别的地方,没看到了,但是其位置打印出来并没有变化),而如果play动画的话,这个模型又可以显示出来...
来源: Laya_社区 发布时间: 20170423
...标签等,都有方法的吗? var skinMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/dude/dude-him.lm"))); skinMesh.transform.localRotationEuler = new Laya.Vector3(0, 3.14, 0); var skinAni = skinMesh.addComponent(Laya.SkinAnimations); skinAni.templet =...
来源: Laya_社区 发布时间: 20170715