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

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

101. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 55%]

...dAt(0)) as MeshSprite3D; //获取刚体 var cubeRigid:Rigidbody3D = cube.getComponent(Rigidbody3D); })); ```

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

102. Laya.Scene.open打开的对话框中如何在关闭的时候调用父Scene中的方法 [ 55%]

...bit 找的方法了,从舞台开始找的这个父Scene节点,再使用getComponent(Laya.Script)获取挂的脚本对象,对象.你的方法即可调用。 2019-08-29 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 父节点是Scene.open打开的,可以直接拿到parent父节点。 ...

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

103. laya.physics.joint.PulleyJoint_API3.0 [ 55%]

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

104. 在laya中应用unity的behaviour(行为组件)编程模式 [ 55%]

...具备那些behaviour的功能,而且behaviour之间还可以通过类似getComponent()的方法互方协作。 在laya中,创建一个ui后,需要另外创建一个且仅一个js脚本,以实现那个ui的所有功能,感觉很不好。 虽然看到有runtime脚本,扩展脚本,附加...

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

105. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 54%]

...te3D; //获取物理碰撞器 var cubeCollider:Laya.PhysicsCollider = cube.getComponent(Laya.PhysicsCollider); })); ```

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

106. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 54%]

...hSprite3D; //获取物理碰撞器 var cubeCollider:PhysicsCollider = cube.getComponent(PhysicsCollider); })); ```

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

107. laya.physics.joint.WeldJoint_API3.0 [ 54%]

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

108. Laya2.0正式版2D官方demo测试有问题 [ 54%]

...每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 此方法为虚方法,使用时重写覆盖即可 2019-02-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 林继衍 相关问题 发起问...

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

109. laya2.0如何设置父子关系和解除父子关系? [ 54%]

...实现向正前方用力发射 Daze • 2019-03-13 11:14 unity里可以用GetComponent<Rigidbody>().velocity = transform.forward * 力度,但laya找不到velocity这个属性啊 内涵tv何吓吓 • 2019-03-13 17:46 @Daze:getComxxx(Laya.Rigidbody).applyForceToCenter({x:0,y:1}),这是2D的...

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

110. [LayaAir 1.0]怎么给动态添加的组件 添加附加脚本 [ 54%]

...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法         }         l.addComponentInstance(s);         Laya.stage.addChild(l); 2025-09-13 0 0 分享 微博 QZONE 微信 wjs 赞同来自: 脚本本身是组件。使用所有node节点的子类...

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