大约有 25 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0032 秒)
... as MeshSprite3D; sphere.meshRender.sharedMaterial = mtl; sphere.transform.localPosition = new Vector3((x-rnum/2)*(w/rnum), (y-mnum/2)*(h/mnum), -2); } } for ( x = 0; x < rnum; x++) { mtl = new PBRMaterial(); mtl.diffuseTexture = Texture2D.load('../../../../res/threeDimen/pbr/gold.png'); mtl.normalT...
来源: Laya_示例 发布时间: 20241124
修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, fa...
来源: Laya_社区 发布时间: 20190717
...ild(sp); sp.on(Laya.Event.HIERARCHY_LOADED, this, function(){ sp.transform.localPosition = new Laya.Vector3(1, 1, 1); var scale = 1; var v3 = sp.transform.localScale; v3.x = scale; v3.y = scale; v3.z = scale; sp.transform.localScale = v3; }) //这个物体里摄像机更远 var sp1 = Laya.Sprite3D.l...
来源: Laya_社区 发布时间: 20170504
...maze/img/demo/toolClock/Conventional/glow.lh").clone() glow.transform.localPosition = new Laya.Vector3(-1,0,-i); this.scene.addChild(glow); let puzzleA = Laya.Loader.getRes("res/maze/img/demo/toolClock/Conventional/puzzleA.lh").clone() puzzleA.transform.localPosition = new Laya.Vector...
来源: Laya_社区 发布时间: 20191209
...plete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen...
来源: Laya_示例 发布时间: 20241124
... var camera = new Laya.Camera(); scene.addChild(camera); camera.transform.localPosition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = Laya.Sprite3D.load("LayaScene_test/test.lh"); scene.addChild(map); //map.transform.localPosition = new Laya.Vector3(0,-4,-10); //控制摄像机 cam...
来源: Laya_社区 发布时间: 20170524
...Camera()); moveCamera.addComponent(CameraMoveScript); moveCamera.transform.localPosition = new Laya.Vector3(0, 7, -7); moveCamera.transform.rotate(new Laya.Vector3(-45, 180, 0), true, false); Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { this.index = 0; //获取每次生成路径 this._ever...
来源: Laya_示例 发布时间: 20241124
...taticModel/quad/quad-Plane001.lm"))) as MeshSprite3D; mesh0.transform.localPosition = new Vector3(-0.3, 0.0, 0.0); mesh0.transform.localScale = new Vector3(0.01, 0.01, 0.01); mesh1 = scene.addChild(new MeshSprite3D(Mesh.load("../../../../res/threeDimen/staticModel/quad/quad-Plane001.lm&quo...
来源: Laya_社区 发布时间: 20170209
...e.meshRenderer.sharedMaterial = boxMat; var localPos = boxSprite.transform.localPosition; var rad = ((Math.PI * 2) / oneCircleCount) * j; Laya.Matrix4x4.createRotationY(rad, radMatrix); Laya.Vector3.transformCoordinate(radius, radMatrix, localPos); boxSprite.transform.localPosition = localPos; scene...
来源: Laya_社区 发布时间: 20191112
...ale = new Laya.Vector3( 0.01125, 0.01125, 0.01125 ); clonesprite.transform.localPosition = new Laya.Vector3(0, 0, 0); // 使用以下代码ios小游戏内显示正常 // scene.addChild(sprite) as Laya.Sprite3D; // sprite.transform.localScale = new Laya.Vector3( // 0.01125, // 0.01125, // 0.01125 // ...
来源: Laya_社区 发布时间: 20220721