---
title: "descendants(where:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdprim/descendants(where:)"
---

# descendants(where:)

Returns the descendant prims of this prim that satisfy the given predicate.

## Declaration

```swift
func descendants(where predicate: USDPrim.Predicate) -> [USDPrim]
```

## See Also

### Traversing the hierarchy

- [children](usdkit/usdprim/children.md)
- [allChildren](usdkit/usdprim/allchildren.md)
- [descendants](usdkit/usdprim/descendants.md)
- [allDescendants](usdkit/usdprim/alldescendants.md)
- [nextSibling](usdkit/usdprim/nextsibling.md)
- [children(where:)](usdkit/usdprim/children(where:).md)
- [nextSibling(where:)](usdkit/usdprim/nextsibling(where:).md)
- [prim(at:)](usdkit/usdprim/prim(at:).md)
- [USDPrim.Predicate](usdkit/usdprim/predicate.md)
