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

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

61. laya.d3.core.MeshFilter_API3.0 [ 59%]

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

62. laya3d的物理属性在哪里设置?求大神指点啊 [ 59%]

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

63. laya.d3.component.LODGroup_API3.0 [ 59%]

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

64. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 59%]

...每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onLateUpdate | 每帧更新之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onDisable | 组件被禁用时执行,比如从节点从舞台移除后 | | onDestroy...

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

65. 人物控制器,重置位置刚体失效 [ 59%]

...相关的链接 提交 1 个回复 Anoxia 赞同来自: 已找到问题,getComponent(Laya.PhysicsCollider)._enabled=true;必须在对象removeSelf()之前进行操作。不知道为什么放到后面会在循环之前关卡的时候破坏游戏中所有的碰撞盒。   2021-02-05 0 0 分享 微...

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

66. 2D物理-仿生机器人 [ 59%]

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

67. 请教一下,父容器的代码中如何调用预制体的脚本 [ 58%]

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

68. 2.0设计模式编辑好了场景,怎么在代码里面获取每一个组件; [ 58%]

...请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: spr.getComponent(组件类型) 2019-05-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 冼哥 相关问题 2.0一不小心删了bin目录下的某个场景json文件...

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

69. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

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

70. laya.effect.EffectBase_API3.0 [ 58%]

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