public Component[] GetComponents (Type type);

파라미터

typeThe type of Component to retrieve.

설명

Returns all components of Type type in the GameObject.

no example available in C#

public T[] GetComponents ();

설명

Generic version. See the Generic Functions page for more details.