Method HasAnyComponentInChildren
| Edit this page View SourceHasAnyComponentInChildren(GameObject, bool, params Type[])
Check if GameObject or any of it's children
have any of the specified components.
Declaration
public static bool HasAnyComponentInChildren(this GameObject gameObject, bool includeInactive = false, params Type[] components)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | |
| bool | includeInactive | |
| Type[] | components |
Returns
| Type | Description |
|---|---|
| bool |