• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 978 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)

141. 使用2D地图3D人物混合进行游戏开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 87%]

...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

142. unity导出的场景不显示实时阴影 [ 87%]

...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

143. laya.d3.renderobjs.renderobj.RenderElementOBJ_API3.0 [ 87%]

...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

144. 3D灯光阴影无效 [ 87%]

..., 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

145. 3D基础显示对象 · LayaAir3.0文档 · LAYABOX [ 87%]

...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

146. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 87%]

...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

147. 2.0版本可用的CameraMoveScript.ts [ 87%]

...RotationZ);             this.tempRotationZ.cloneTo(this.camera.transform.localRotation);             this.camera.transform.localRotation = this.camera.transform.localRotation;         }     }          /**          * @inheritDoc          */...

来源: Laya_社区 发布时间: 20200707

148. 导入3D模型有问题 [ 87%]

...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

149. 使用2D地图3D人物混合进行游戏开发(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 87%]

...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

150. 3D模型无法用Tween类吗 [ 87%]

...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