大约有 978 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)
Laya_社区(516) Laya3.0_api(117) Laya2.0_文档(110) Laya2.0_api(94) laya_api(83) Laya_示例(40) Laya3.0_文档(18)
...is._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...
来源: Laya2.0_文档 发布时间: 20210715
...ht = scene.addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 2048; light.shadowPSSMCount = 1; light.shadowPCFType = 3; let plane: Laya.MeshSprite3D ...
来源: Laya_社区 发布时间: 20191030
...t _isRender _materialShaderData _owner _renderShaderData _shaderInstances _transform Methods _addShaderInstance _clearShaderInstance _destroy _render drawGeometry Constructors constructor new RenderElementOBJ(): RenderElementOBJ Defined in laya/d3/RenderObjs/RenderObj/RenderElementOBJ.ts:28 Returns ...
来源: Laya3.0_api 发布时间: 20231115
..., 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.transform.position = new Vector3(0, 30, 0); //这一行不管有没有,都一样没有效果 directionLight.direction = new Vector3(0, -1.0, -1.0); directionLight.shadow = true; var QiPanMesh:MeshSprite3D = new MeshSprite...
来源: Laya_社区 发布时间: 20170617
...Material; // 添加到场景 this.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 */ let sphere = new Laya.Sprite3D; let sphereMesh = sphere.addComponent(Laya.MeshFilter); let sp...
来源: Laya3.0_文档 发布时间: 20241014
...camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild(directionLight); //设置灯光方向 var...
来源: Laya_社区 发布时间: 20191209
...RotationZ); this.tempRotationZ.cloneTo(this.camera.transform.localRotation); this.camera.transform.localRotation = this.camera.transform.localRotation; } } /** * @inheritDoc */...
来源: Laya_社区 发布时间: 20200707
...mera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); camera.clearColor = null; //添加自定义模型 var mesh = scene.addChil...
来源: Laya_社区 发布时间: 20170718
...Monkey = layaMonkey; //设置缩放 var tmpLocalScale:Vector3 = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLocalScale; /*添加部分*/ _pos.x = Laya.stage.mouseX; _pos.y = Laya.stage.mouseY; //转换2D屏幕坐标系统到3D正交投...
来源: Laya2.0_文档 发布时间: 20210715
...y/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,...
来源: Laya_社区 发布时间: 20180112