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