Version: 2017.3

MaskUtilities.IsDescendantOrSelf

매뉴얼로 전환
public static bool IsDescendantOrSelf (Transform father, Transform child);

파라미터

father The transform to compare against.
child The 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.