public static bool IsDescendantOrSelf (Transform father, Transform child);

Parámetros

fatherThe transform to compare against.
childThe starting transform to search up the hierarchy.

Valor de retorno

bool Is child equal to father or is a descendant.

Descripción

Helper function to determine if the child is a descendant of father or is father.