Finds all components of a specific type in the parent hierarchy of the given SceneObject.
The SceneObject whose parents to search.
The type of component to search for.
Maximum number of parent levels to search.
An array of all matching components found.
Finds all components of a specific type in the parent hierarchy of the given SceneObject.