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

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

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

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

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

112. laya.physics.joint.MouseJoint_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

113. 脚本引入时调用函数会出现 Cannot read property 'Init' of null [ 54%]

...r.js中的Init(sign){ this.sign=sign; }  GameManager.js 中的调用 car.getComponent(Car).Init(carIndex.toString())  在进行回收检测的时候carIndex.toString() 提示 Cannot read property 'Init' of null   请问怎么处理 大佬们~~   我给参数去了,不传参数也会提示...

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

114. laya.physics.ColliderBase_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

115. laya.d3.physicscannon.CannonPhysicsComponent_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 发布时间: 20231102

116. laya.components.Widget_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

117. Spine动画烘焙插件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 54%]

...ine2DRenderNode组件 let spine2dRender: Laya.Spine2DRenderNode = spineboy.getComponent(Laya.Spine2DRenderNode); // 设置播放动画 spine2dRender.animationName = "walk"; // 添加预制体到场景 this.owner.addChild(spineboy); }); } } Copyright ©Layabox 2026 all right reserved,powered by Lay...

来源: Laya3.0_文档 发布时间: 20251010

118. laya.ui.Widget_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 发布时间: 20231102

119. dialog弹窗不居中(laya2.0.0beta5) [ 53%]

...是继承Laya.Dialog的,无法像Laya.scene那样加控制脚本,this.getComponent(xx),取不到控制类,何解?

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

120. Unity导出插件导出的模型中Transform值有误 [ 53%]

...or3(-90, 0, 0);//让它还原unity上的rotation let phyCol = colliderItem.getComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; let oldShape = phyCol.colliderShape as Laya.BoxColliderShape; phyCol.colliderShape = oldShape;//不执行这一步这个collider还是歪的,必须重新赋值一下...

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