| t | El tipo de Component para recuperar. |
| includeInactive | ¿Los Components inactivos deben ser incluidos en el set encontrado? |
Retorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres.
// Disable the spring on all HingeJoints
// in this game object and all its parent game objects
hingeJoints = (HingeJoint[]) gameObject.GetComponentsInParent(typeof(HingeJoint));
foreach (HingeJoint joint in hingeJoints) {
joint.useSpring = false;
}
| includeInactive | ¿Los Components inactivos deben ser incluidos en el set encontrado? |
Versión genérica. Para más detalles, mira la página de Funciones genéricas.