---
title: "set(_:)"
framework: usdkit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdprim/specializecollection/set(_:)"
---

# set(_:)

Replaces all specializes arcs with the specified list.

## Declaration

```swift
func set(_ primPaths: [USDLayer.Path]) throws
```

## Parameters

- `primPaths`: The new list of specializes paths.

## Discussion

Discussion note: An error if the specializes cannot be set.
