Searches for the first component 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.
The first component found, or null if none exists.
Searches for the first component of a specific type in the parent hierarchy of the given SceneObject.