大约有 344 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
...ny[], sprite: Sprite, componentType: typeof Component) { let comp = sprite.getComponent(componentType); if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件...
来源: Laya3.0_文档 发布时间: 20251010
...在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
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getGraphicBounds(realSize:Boolean = false):Rectangle[override]...
来源: Laya2.0_api 发布时间: 20190513
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getGraphicBounds(realSize:Boolean = false):Rectangle 返回此...
来源: Laya2.0_api 发布时间: 20190513
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getGraphicBounds(realSize:Boolean = false):Rectangle 返回此...
来源: Laya2.0_api 发布时间: 20190513
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getGraphicBounds(realSize:Boolean = false):Rectangle[overrid...
来源: Laya2.0_api 发布时间: 20190513
...): void { //拿到IDE节点上挂载的spine组件 this.spine = this.owner.getComponent(Laya.Spine2DRenderNode); let currentSkin: string = this.spine.skinName; // 记录当前皮肤状态 //播放停止后执行逻辑 this.owner.on(Laya.Event.STOPPED, this, () => { // 通过三元运算符切换...
来源: Laya3.0_文档 发布时间: 20251128
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getGraphicBounds(realSize:Boolean = false):Rectangle 返回此...
来源: 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 发布时间: 20231115
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getGraphicBounds(realSize:Boolean = false):Rectangle 返回...
来源: Laya2.0_api 发布时间: 20190513