---
title: "referenceObjects(inGroupNamed:bundle:)"
framework: arkit
role: symbol
role_heading: Type Method
path: "arkit/arreferenceobject/referenceobjects(ingroupnamed:bundle:)"
---

# referenceObjects(inGroupNamed:bundle:)

Loads all reference objects in the specified AR Resource Group in your Xcode project’s asset catalog.

## Declaration

```swift
class func referenceObjects(inGroupNamed name: String, bundle: Bundle?) -> Set<ARReferenceObject>?
```

## Parameters

- `name`: The name of an AR Resource Group from your Xcode project’s main asset catalog.
- `bundle`: The bundle from which to load asset catalog resources, or nil to use your app’s main bundle.

## Return Value

Return Value A set of all unique reference objects in the specified group.

## Discussion

Discussion To use the objects for detection in a world-tracking AR session, provide this set for your session configuration’s detectionObjects property.

## See Also

### Loading Reference Objects

- [init(archiveURL:)](arkit/arreferenceobject/init(archiveurl:).md)
