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

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

71. 射线检测-点击行走 [ 50%]

...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...

来源: Laya_示例 发布时间: 20241125

72. 问下,3D模型导出有什么要求 [ 50%]

...是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffu...

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

73. laya.ui.UIGroup_API3.0 [ 46%]

...cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items labelBold labelColors labelFont labelPadding l...

来源: Laya3.0_api 发布时间: 20231115

74. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 46%]

... 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //添...

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

75. 射线检测-选取物体 [ 46%]

...ector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSpri...

来源: Laya_示例 发布时间: 20241125

76. Cannot read property 'rayCast' of undefined [ 45%]

...rue, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.l...

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

77. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 43%]

...景根节点类型 private scene3D: Laya.Scene3D; @property( { type:Laya.DirectionLightCom } ) //DirectionLight组件类型 private directionLight: Laya.DirectionLightCom; @property( { type:Laya.Sprite3D } ) //Sprite3D节点类型 private cube: Laya.Sprite3D; @property( { type:Laya.Prefab } ) //加...

来源: Laya3.0_文档 发布时间: 20241014

78. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 42%]

...其它设置)`里,当前只有一个选项,叫`Customize Export Root Directory Name(自定义导出目录名称)`,如下图所示,我们的根目录`Save Path(导出路径)`这里设置的是`E:/Game/3D`,当自定义目录名为test时,最终导出的资源全路径实际为`E:...

来源: Laya2.0_文档 发布时间: 20210714

79. rigidBody.applyForce 物体不会移动 [ 42%]

...場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector...

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

80. 有关Laya3D碰撞检测疑问 [ 41%]

...-15, 0, 0), true, false); this.camera.clearColor = null;  //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1);  //平...

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