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

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

351. 2.0版本可用的CameraMoveScript.ts [ 79%]

...ipt extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3();     protected resultRotation: Laya...

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

352. laya.d3.core.material.TerrainMaterial [ 79%]

...Number 获取透明测试模式裁剪值。 BaseMaterial  ambientColor : Vector3TerrainMaterial  blend : int 获取混合方式。 TerrainMaterial  blendDst : int 获取混合目标。 TerrainMaterial  blendSrc : int 获取混合源。 TerrainMaterial  cull : int 获取剔除方式。 Terr...

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

353. 环形进度条 [ 79%]

...果,是我参数传的有问题吗? graph.drawCircle(0,0,50,new Laya.Vector3(0,1,1),new Laya.Vector3(0,1,1),10); 颜色的参数怎么传,参数类型是any,我不知道要传什么。 还有这个是不是得在Update中一直调用才行? Laya_Aaron • 2017-12-11 20:44 先new一个sprit...

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

354. 获取相机renderTexture 作为阴影 的UV [ 79%]

...   onUpdate(){         this.ShadowCamera.transform.lookAt(new Vector3(0,0,0), new Vector3(0,1,0), false);         let v:Matrix4x4 = this.ShadowCamera.viewMatrix;         let p:Matrix4x4 = this.ShadowCamera.projectionMatrix;         let o:Matrix4x4 = ne...

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

355. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 78%]

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

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

356. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 78%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6...

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

357. 怎么设置3D相机,模型的绝对值 [ 78%]

...置3D相机,模型的绝对值 this.camera.transform.position = new Laya.Vector3(0, 10, 40); this.camera.transform.translate(new Laya.Vector3(0, 10, 40)); this.camera.transform.rotate(new Laya.Vector3(0, 10, 0), true, false); 做一个按钮,专门切换到90度的视图上,怎么设置相机的绝...

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

358. laya.d3.utils.Utils3D [ 78%]

... Public Methods  MethodDefined By  convert3DCoordTo2DScreenCoord(source:Vector3, out:Vector3):void[static] 转换3D投影坐标系统到2D屏幕坐标系统,以像素为单位,通常用于正交投影下的3D坐标((0,0)在屏幕中心)到2D屏幕坐标((0,0)在屏幕左上角...

来源: laya_api 发布时间: 20170929

359. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 78%]

...节点也跟随移动 this.layaMonkeyParent.transform.translate(new Laya.Vector3(-0.2, 0, 0); (动图3-2) 通过点击按钮,让子节点移动,可以看到父节点并没有移动 this.layaMonkeySon.transform.translate(new Laya.Vector3(-0.2, 0, 0); 四、克隆 关于克隆,LayaAir3D中...

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

360. VR场景-VR场景 [ 78%]

...aya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 2, 0)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2...

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