大约有 121 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0037 秒)
...onstructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset localBounds material materials ratioIgnor receiv...
来源: Laya3.0_api 发布时间: 20231115
...频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点...
来源: Laya3.0_文档 发布时间: 20250214
...tate); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewp...
来源: Laya_社区 发布时间: 20180201
....log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: (图2)
来源: Laya2.0_文档 发布时间: 20210714
...t():void { trace("onStart"); } override public function onUpdate():void { (owner as Sprite3D).transform.rotate(rotation, false); } override public function onLateUpdate():void { trace("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: (...
来源: Laya2.0_文档 发布时间: 20210714
...log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: (图2)
来源: Laya2.0_文档 发布时间: 20210715
... code中ts代码提示问题 代码提示似乎不全。。? 比如 this.owner.scene. 这里就没有提示了。 2020-02-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折...
来源: Laya_社区 发布时间: 20200220
...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
...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
...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