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

大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)

121. UNITY导出的模型旋转不了 [ 53%]

... } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为不可用"); } } 2020-06-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0...

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

122. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 53%]

...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

123. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 53%]

...的移动半径数组 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

124. 设置后box2d 的 worldRoot 后平移场景 物理世界原地不动 [ 53%]

....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

125. Laya3D场景加载问题 [ 52%]

...,p30显示出来了;小米note3是黑屏,点屏触发游戏开始,onUpdate中log能正常打出来,中间有UI弹窗也可以弹出。程序在正常跑,只是没有显示。

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

126. native播放音效会偶现闪退 [ 52%]

...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

127. 获取相机renderTexture 作为阴影 的UV [ 52%]

...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

128. Cannot read property '_physicsUpdateList' of null 错误 [ 51%]

...se,再使用Laya.timer.once调用destroy方法,因为有些组件还在onupdate中,不可以立刻删除 图集的话,可以试下     使用loader.clearRes()来清除缓存。     2019-04-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

129. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 51%]

...nAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: ![](img/2.gif)(图2)

来源: Laya2.0_文档 发布时间: 20210714

130. 请问Laya如何使用第三方物理库 [ 51%]

...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