Version: 2017.3

MaskUtilities.IsDescendantOrSelf

Cambiar al Manual
public static bool IsDescendantOrSelf (Transform father, Transform child);

Parámetros

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