GetComponent in parent question

I know you can do GetComponent and it looks for other scripts in the same gameObject.
Then there’s GetComponentInChildren which looks for scripts in the gameObject’s children.

I was wondering if there was the same thing but for looking up in hierarchy like GetComponentInParent?
Or if GetComponent is already doing that.


From 4.5 available GameObject.GetComponentsInParent

GameObject.GetComponent(“Name In hierarchy”).GetComponent(“Name Of Script/Controller”);

This will find the object and then select the chosen script. The Name In Hierarchy can be a child of another game object and it will still select it without specifying that it is a child.