The SceneObject to start the search from.
The string key of the component type to find (e.g., "Component.RenderMeshVisual").
OptionalmaxLevels: numberThe maximum number of levels to search up the hierarchy (for parents).
An array of all matching Components found.
[ByScriptType] Finds all Components of a given script type on the SceneObject itself and in its parents.
The SceneObject to start the search from.
The script type name (e.g., Interactable.getTypeName())) to find.
OptionalmaxLevels: numberThe maximum number of levels to search up the hierarchy (for parents).
An array of all matching Components found.
[ByKey] Finds all Components of a given type on the SceneObject itself and in its parents.