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

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

321. 如何在3d场景中添加文字 [ 81%]

... //场景的相机 public otherGameScene:Laya.Camera; private _outPos:Laya.Vector3 = new Laya.Vector3(); this.txtName = new Laya.Text(); this.txtName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"; this.txtName.bold = true; this.txtNam...

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

322. laya阴影问题 [ 81%]

...dByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index++) { var a = 0.05; var b = 0.2; var c...

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

323. 请问我导入3d模型一直找不到它 [ 81%]

...irectionLight;             directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6);             directionLight.specularColor = new Laya.Vector3(1.0, 1.0, 0.9);             directionLight.diffuseColor = new Laya.Vector3(1, 1, 1);             directionLight.di...

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

324. laya.d3.renderobjs.nativeobj.NativeCameraCullInfo_API3.0 [ 81%]

...ts:54 Parameters cullingMask: number Returns void position get position(): Vector3 set position(position: Vector3): void Defined in laya/d3/RenderObjs/NativeOBJ/NativeCameraCullInfo.ts:41 Returns Vector3 Defined in laya/d3/RenderObjs/NativeOBJ/NativeCameraCullInfo.ts:36 Parameters position: Vector3 ...

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

325. laya.d3.webxr.core.WebXRCameraManager_API3.0 [ 81%]

...XR/core/WebXRCameraManager.ts:45 parent Accessors position get position(): Vector3 set position(newPosition: Vector3): void Defined in laya/d3/WebXR/core/WebXRCameraManager.ts:47 Returns Vector3 Defined in laya/d3/WebXR/core/WebXRCameraManager.ts:51 Parameters newPosition: Vector3 Returns void rigCa...

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

326. 为什么rotation、scale赋值了不管用? [ 81%]

...shSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,但是我放到frameloop里就有用,请问这是为什么?要怎么解决? 2018-03-09 ...

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

327. laya.d3.core.BaseCamera [ 81%]

...BaseCamera  fieldOfView : Number 获取视野。 BaseCamera  forward : Vector3[read-only] 获取前向量。 BaseCamera id : int[read-only] 获取唯一标识ID。 Sprite3D isStatic : Boolean是否静态,静态包含一系列的静态处理。Sprite3D layer : Layer 获取蒙版。 Sprite3D l...

来源: laya_api 发布时间: 20170929

328. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 81%]

...(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.translate(new Laya.Vector3(1000, 0, 0)); camera.orthographic = true; //正交投影垂直矩阵尺寸 camera.orthographicVerticalSize = 10; camera.clearFlag = Laya.BaseCamer...

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

329. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 80%]

...  Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         this.upVector3 = new Laya.Vector3(0, 1, 0);         //预加载所有资源         let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, ...

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

330. physicsSimulation.rayCast在新版本里选取不准确 [ 80%]

...,有偏移,目前无奈只能回退到2.8.0版本 let touchPoint:Laya.Vector3 = new Laya.Vector3();          let screenPoint:Laya.Vector2 = new Laya.Vector2();         screenPoint.x = Laya.MouseManager.instance.mouseX;         screenPoint.y = Laya.MouseManage...

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