◆ IsDecendantOf()

static bool IsDecendantOf ( this Transform  transform,
Transform  transformToCheck 
)
static
Parameters
transformthis is the calling transform.
transformToCheckThis is the transform we will check against.
Returns
True if the calling transform has TrasformToCheck as an ancestor.