Method IsDescendentOf
IsDescendentOf(Transform, Transform)
Check if a transform is a descendent of another transform.
Declaration
public static bool IsDescendentOf(Transform transform, Transform ancestor)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | Transforms to check. |
| Transform | ancestor | Transform's ancestor. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the transform is a descendent. False otherwise. |