Show / Hide Table of Contents

Method HasAnyComponentInChildren

| Edit this page View Source

HasAnyComponentInChildren(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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾