大约有 55 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...D; private camera : Laya.Camera; private scene: Laya.Scene; public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); } public _start(state:Laya.RenderState):v...
来源: Laya_社区 发布时间: 20181020
... Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y); v...
来源: Laya_社区 发布时间: 20231123
...structor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath Accessors anchor appliedImpulse awaked breakForce breakTorque connectAnchor currentForce currentTorque destroyed enabled hideFlags id Methods _initialize _setConnectRigidBody _setOwner destroy get...
来源: Laya3.0_api 发布时间: 20231115
...a); PanelMgr.mainCamera.viewportPointToRay(this.pointRay, this.ray); (this.owner as Laya.Scene3D).physicsSimulation.rayCast(this.ray,this.hitresult); console.log(Laya.MouseManager.instance.mouseX + " -=----------" + Laya.MouseManager.instance.mouseY); if (this.hitresult.succeeded) { console.log(this...
来源: Laya_社区 发布时间: 20190416
...structor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath Accessors anchor appliedImpulse awaked breakForce breakTorque connectAnchor currentForce currentTorque destroyed enabled hideFlags id Methods _initialize _setConnectRigidBody _setOwner destroy get...
来源: Laya3.0_api 发布时间: 20231115
...ender=renders ; if (camera._isLayerVisible(render._owner._layer)&& render._enable){ Stat.frustumCulling++; if (!camera.useOcclusionCulling || render._needRender(boundFrustum)){ ...
来源: Laya_社区 发布时间: 20190711
...or3(0,0,0); } onStart(){ this.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene...
来源: Laya_社区 发布时间: 20190531
...Sprite3D的脚本,直接挂到了Scene节点上,启动时会报“this.owner._scene._addScript is not a function”,请问怎么处理? 2020-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 陆仁毅 ...
来源: Laya_社区 发布时间: 20201126
...x; lastPosition.y = touch.position.y; //根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scen...
来源: Laya2.0_文档 发布时间: 20210715
...Constructors constructor Properties _extra _isScene _singleton _updateMark owner runInEditor scriptPath TEMPVECTOR3 defaultTextureHDRDecodeValues Accessors ambientColor ambientIntensity ambientMode ambientSH ambientSphericalHarmonics awaked bounds boundsMax boundsMin boxProjection customReflection d...
来源: Laya3.0_api 发布时间: 20231115