大约有 324 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): ...
来源: Laya3.0_api 发布时间: 20231115
...scene.getChildByName('ball') as Laya.MeshSprite3D; let ballRigidboy = ball.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; ballRigidboy.friction = 1; ballRigidboy.rollingFriction = 1; ballRigidboy.restitution =1;拿到精灵节点,从精灵节点拿到刚体组件。 2019-11-29 0 1 分享 微...
来源: Laya_社区 发布时间: 20191129
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onReset onReset(): void Inh...
来源: Laya3.0_api 发布时间: 20231115
...每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onLateUpdate | 每帧更新之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onDisable | 组件被禁用时执行,比如从节点从舞台移除后 | | onDestroy...
来源: Laya2.0_文档 发布时间: 20210715
...相关的链接 提交 1 个回复 Anoxia 赞同来自: 已找到问题,getComponent(Laya.PhysicsCollider)._enabled=true;必须在对象removeSelf()之前进行操作。不知道为什么放到后面会在循环之前关卡的时候破坏游戏中所有的碰撞盒。 2021-02-05 0 0 分享 微...
来源: Laya_社区 发布时间: 20210201
....stage.on(Laya.Event.CLICK, this, () => { const chassisBody = this.chassis.getComponent(Laya.RigidBody); const chassisPos = chassisBody.getBody().GetPosition(); let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall); let circleBody = newBall.addComponent(Laya.RigidBody); let circleCollid...
来源: Laya2.0_示例 发布时间: 20260929
... 2018-12-11 0 0 分享 微博 QZONE 微信 Jim.邹 赞同来自: 通过:getComponent(clas:Class) https://layaair.ldc.layabox.co ... onent() 2018-12-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ippon 相关问题 两个对象new...
来源: Laya_社区 发布时间: 20181122
...请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: spr.getComponent(组件类型) 2019-05-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 冼哥 相关问题 2.0一不小心删了bin目录下的某个场景json文件...
来源: Laya_社区 发布时间: 20181213
...eSprite3D: Laya.PixelLineSprite3D, color: Laya.Color): void { if (sprite3D.getComponent(Laya.MeshFilter)) { var mesh: Laya.Mesh = sprite3D.getComponent(Laya.MeshFilter).sharedMesh; var positions: Array<Laya.Vector3> = []; mesh.getPositions(positions); var indices = mesh.getSubMesh(0).getIndice...
来源: Laya3.0_文档 发布时间: 20251010
...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): ...
来源: Laya3.0_api 发布时间: 20231115