Finds all script components on the SceneObject itself and in its parent hierarchy.
The SceneObject to start the search from.
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 on the SceneObject itself and in its parent hierarchy.