Recursively searches for the first script component of a specific class type in the children of the given SceneObject.
The SceneObject whose children to search.
The constructor/class of the script component to search for.
Maximum search depth.
The first script component found, or null if none exists.
Recursively searches for the first script component of a specific class type in the children of the given SceneObject.