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

大约有 1,207 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)

501. 判断玩家在地面还在空中 [ 77%]

...er = this.transform.position.y-bc.sizeY/2 - 0.05         let vec3:Laya.Vector3 = new Laya.Vector3(this.transform.position.x,y,this.transform.position.z);         var ray = new Laya.Ray(vec3,new Laya.Vector3(0,0,1));         (this.owner.scene as Laya.Scene3D).physicsSimulation.rayCast(ray...

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

502. laya3d发布小游戏报错 [ 77%]

...Number 去掉设置背景色的代码就好了camera.clearColor = new Laya.Vector3(0.5, 0.5, 0.6); laya版本1.7.19 设备 小米note3 微信版本 6.7.2 安卓版本7.1.1 其他设备没进行测试 2018-09-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

503. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 77%]

...a(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2 = scene.addChild...

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

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

...ra(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); this.camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = this.scene.addChild(new Laya.DirectionLight...

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

505. laya.d3.core.pixelLine.PixelLineMaterial [ 77%]

...Material  blendSrc : int 获取混合源。 PixelLineMaterial  color : Vector4 获取颜色。 PixelLineMaterial  cull : int 获取剔除方式。 PixelLineMaterial  depthTest : int 获取深度测试方式。 PixelLineMaterial  depthWrite : Boolean 获取是否写入深度。 PixelLineMat...

来源: Laya2.0_api 发布时间: 20190513

506. laya.d3.webxr.core.WebXRCamera_API3.0 [ 77%]

...ted from Node._extra Defined in laya/display/Node.ts:56 _forward _forward: Vector3 = new Vector3() Inherited from BaseCamera._forward Defined in laya/d3/core/BaseCamera.ts:174 前向量 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _up _up: Vector3 = new Vector3(...

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

507. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 77%]

...a(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); //创建相机2 var camera2 = scene.addChild...

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

508. 对象池3D问题 [ 77%]

...h"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getChildByName("denglongyu").getChil...

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

509. laya.d3.core.light.LightSprite [ 77%]

...: Boolean[read-only] 获取在场景中是否激活。 Sprite3D  color : Vector3 灯光颜色。 LightSprite componentsCount : int[read-only] 获得组件的数量。 Sprite3D destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node  diffuseColor : Vector3 获取...

来源: laya_api 发布时间: 20170929

510. laya.d3.core.particleshuriken.module.shape.ConeShape_API3.0 [ 77%]

...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/ConeShape.ts:89 用于生成粒子初始位置...

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