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

파라미터

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

반환

bool Is child equal to father or is a descendant.

설명

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