I know that GetComponent (including GetComponentInChildren, GetComponentInParent in 4.6) only return active objects. Is there a way to get one inactive component without using GetComponents(true)[0] to avoid allocating memory of the returned component array?
Edit: I mean only GetComponentInChildren and GetComponentInParent - GetComponent finds components even if the gameobject is inactive.
Edit: I mean only GetComponentInChildren and GetComponentInParent - GetComponent finds components even if the gameobject is inactive.