Searches for a given component type in the children of the given object.
The object to start the search from - this object is also included in the search.
The type of the component to search for.
Optional
If true, also inactive components are returned. Default is true.
The first component of the given type found in the children of the given object.
const myComponent = getComponentInChildren(myObject, MyComponent); Copy
const myComponent = getComponentInChildren(myObject, MyComponent);
Generated using TypeDoc
Searches for a given component type in the children of the given object.