Quick question about GetComponentsInChildren< MonoBehaviour >()


I was wondering what the line:

MonoBehaviour[] behaviours = myObject.GetComponentsInChildren<MonoBehaviour>();

actually does. I have a feeling that it returns all of the components attached to myObject and places them into the behaviours array?

I could be way off the mark though.

it returns an array of the compoenent type specified. see componenet types.

DO u look at reference before asking?