大约有 348 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...变得紊乱,碰撞盒也跟Sprite分离了 var rig:Laya.RigidBody = xx.getComponent(Laya.RigidBody); var body:any = rig.getBody(); 原本是希望找到在2D场景中整体移动刚体的方法的,但是只要调用这个方法即会出错,期望能帮忙指点,感激不尽~ 2018-11-22 添...
来源: Laya_社区 发布时间: 20181122
...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
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...
来源: Laya2.0_api 发布时间: 20190513
...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
...在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
...xture = this.videoTexture; //将材质应用到Sprite3D上 this.videoPlane.getComponent(Laya.MeshRenderer).sharedMaterial = mat; } } 效果如图所示: 下面我们来介绍一下videoTexture中常用的属性和方法,开发者也可以在API文档中查看videoTexture的所有属性和方法...
来源: Laya3.0_文档 发布时间: 20251010
...;; 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
...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
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...
来源: Laya2.0_api 发布时间: 20190513
...在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