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

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

341. 3D场景-场景加载 [ 79%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCu...

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

342. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 79%]

...Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0...

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

343. laya.d3.core.particleshuriken.module.shape.SphereShape_API3.0 [ 79%]

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

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

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

345. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 79%]

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

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

346. 环形进度条 [ 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

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

348. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 79%]

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

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

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

350. 获取相机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