大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
... } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为不可用"); } } 2020-06-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0...
来源: Laya_社区 发布时间: 20200611
...t; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y); var spr= this.owner as Laya.Sprite; spr.localToGlobal(playerPos); var _x=pl...
来源: Laya_社区 发布时间: 20231123
...的移动半径数组 public var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/In...
来源: Laya2.0_文档 发布时间: 20210714
....Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect.x = this.target.x - 400; this.cameraRect.y = this.target.y - 400; } 2020-08-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 奶油...
来源: Laya_社区 发布时间: 20190214
...,p30显示出来了;小米note3是黑屏,点屏触发游戏开始,onUpdate中log能正常打出来,中间有UI弹窗也可以弹出。程序在正常跑,只是没有显示。
来源: Laya_社区 发布时间: 20190925
...ckWavePlayEnd() + 108 11 layabox 0x0000000101059f98 laya::JCScriptRuntime::onUpdate() + 368 12 layabox 0x0000000101000b58 laya::JCConchRender::renderFrame(long, bool) + 468[/code] 2019-09-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20190923
...apTex, v_shadow_data1.xy).rgb); ts代码设置u_ShadowMapTex 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.S...
来源: Laya_社区 发布时间: 20200229
...se,再使用Laya.timer.once调用destroy方法,因为有些组件还在onupdate中,不可以立刻删除 图集的话,可以试下 使用loader.clearRes()来清除缓存。 2019-04-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20190415
...nAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: (图2)
来源: Laya2.0_文档 发布时间: 20210714
...dy, OnEnable里面把CANNON.Body加入到CANNON.World, OnDisable则移除, onUpdate里面根据CANNONBody的信息更新(this.owner as Laya.MeshSprite).transfrom.(最好用插值,平滑点,四元数代码就拷贝Laya源码改改.) isKinematic 则根据(this.owner as Laya.MeshSprite).transfrom的位...
来源: Laya_社区 发布时间: 20200217