大约有 339 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0047 秒)
Laya_社区(199) Laya2.0_文档(67) Laya_示例(44) Laya3.0_api(15) Laya3.0_文档(12) laya_api(1) Laya2.0_api(1)
...n/scene/Arena/Arena.ls")) //与3d场景的不同是添加了vr相机 var vrCamera = scene.addChild(new Laya.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 sky...
来源: Laya_示例 发布时间: 20260106
...Corners(_corners) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, this.camera); this.phasorSpriter3D.line(_corners[0], _color, _corners[1], _color); this.phasorSpriter3D.line(_corners[1], _color, _corners[2], _color); this.phasorSpriter3D.line(_corners[2], _color, _corners[3], _color); this.phas...
来源: Laya_社区 发布时间: 20180821
...aya.Vector3(0,0,100); phasorSpriter3D.begin(Laya.WebGLContext.LINES, camera); phasorSpriter3D.line(_corners[0], _color, _corners[1], _color); phasorSpriter3D.line(_corners[1], _color, _corners[2], _color); phasorSpriter3D.line(_corners[2], _color, _corners[3], _color); phasorSpriter3D.line(_co...
来源: Laya_社区 发布时间: 20180426
...-20 08:18 window10 x64 仓颉 • 2023-02-20 08:33 跟Rabbit.ts中的 this.camera.viewportPointToRay(point, this.ray); 这个有关系 LayaAir3 • 2023-02-20 14:32 @仓颉:已经重现了,问题是Laya.Vector3.ZERO被修改了 把代码 var ray:Laya.Ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vecto...
来源: Laya_社区 发布时间: 20230216
...*/ private txtName:Laya.Text; //场景的相机 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.txt...
来源: Laya_社区 发布时间: 20171010
...rrPosition; } //刷新摄像机位置 camera.transform.position=new Vector3(roleModel.transform.position.x, roleModel.transform.position.y + cameraY, roleModel.transform.position.z - cameraZ); } 2017-08-28 1 0 分享 微博 QZONE 微信 ltmking 赞同来自: 我...
来源: Laya_社区 发布时间: 20170828
...户 赞同来自: main代码 // Main.ts - 简化版异步加载 import { CameraController } from "./CameraController"; import { Joystick } from "./Joystick"; import { Player } from "./Player"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { @propert...
来源: Laya_社区 发布时间: 20251125
...)是什么意思 这个写法是什么意思,能否解释一下,谢谢 camera的orthographicVerticalSize属性是什么意思? 文档上写的太简洁了! 控制台显示node --debug-brk=27489 --nolazy Debugger listening on [::]:27489是什么意思? 在ui界面中的json的selecteID指...
来源: Laya_社区 发布时间: 20170219
...r3D。 Hierarchy Shader3D Index Constructors constructor Properties PERIOD_CAMERA PERIOD_CUSTOM PERIOD_MATERIAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLEND_DST_RGB RENDER_STATE_BLEND_EQUATION REND...
来源: Laya3.0_api 发布时间: 20231102
...rayOrigin.z) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, LayaAir3D.camera); this.phasorSpriter3D.line(this._linePos, this._color, this.ray.origin, this._color); this.phasorSpriter3D.end(); console.log("碰撞检测" + this.outHitInfo.distance);//一直都是-1 附件 : --> 2018-03-16 添...
来源: Laya_社区 发布时间: 20180316