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

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

121. Laya2.0 刚体获取body时,场景中所有刚体紊乱 [ 53%]

...变得紊乱,碰撞盒也跟Sprite分离了 var rig:Laya.RigidBody = xx.getComponent(Laya.RigidBody); var body:any = rig.getBody(); 原本是希望找到在2D场景中整体移动刚体的方法的,但是只要调用这个方法即会出错,期望能帮忙指点,感激不尽~ 2018-11-22 添...

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

122. BoxCollider 调用destroy报错 [ 53%]

...mponentIntance(boxColl); kura • 2018-12-10 16:57 var reg:Laya.RigidBody=.getComponent(Laya.RigidBody)as Laya.RigidBody; if(reg.isSingleton){ reg.destroy(); } 你试下这样,用isSingleton判断下先,如果解决了麻烦回复哦 kura • 2018-12-10 17:00 看了下你的报错 ,好像不...

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

123. laya.d3.core.light.DirectionLight [ 53%]

...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...

来源: Laya2.0_api 发布时间: 20190513

124. laya.html.dom.HTMLIframeElement_API3.0 [ 53%]

...rameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener hitTestPoint isAncestorOf loadImage...

来源: Laya3.0_api 发布时间: 20231102

125. laya.d3.component.volume.Volume_API3.0 [ 53%]

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

126. 视频 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...xture = this.videoTexture; //将材质应用到Sprite3D上 this.videoPlane.getComponent(Laya.MeshRenderer).sharedMaterial = mat; } } 效果如图所示: 下面我们来介绍一下videoTexture中常用的属性和方法,开发者也可以在API文档中查看videoTexture的所有属性和方法...

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

127. [LayaAir3]list.selectHandler [ 53%]

...;; let modelCtrl:ModelCtrl =Laya.stage.getChildByName("Scene3D").getComponent(ModelCtrl) as ModelCtrl; if(modelCtrl!=null){ this.uiCtrl.InitLeftUI(modelCtrl.data.result); } if(this.uiCtrl._tagList!=null){ this.uiCtrl._tagList.visible=true; } }else{ this.btn.skin="resources/ui/目录.p...

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

128. laya.html.dom.HTMLDivElement_API3.0 [ 53%]

...rameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener hitTestPoint isAncestorOf loadImage...

来源: Laya3.0_api 发布时间: 20231102

129. laya.d3.core.light.PointLight [ 53%]

...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...

来源: Laya2.0_api 发布时间: 20190513

130. laya.d3.physicscannon.CannonPhysicsTriggerComponent_API3.0 [ 52%]

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