<!--
{
  "availability" : [
    "iOS: 12.0.0 - 27.0.0",
    "iPadOS: 12.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARReferenceObject/referenceObjects(inGroupNamed:bundle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARReferenceObject(cm)referenceObjectsInGroupNamed:bundle:"
  },
  "title" : "referenceObjects(inGroupNamed:bundle:)"
}
-->

# referenceObjects(inGroupNamed:bundle:)

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

```
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

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

## Discussion

To use the objects for detection in a world-tracking AR session, provide this set for your session configuration’s [`detectionObjects`](/documentation/ARKit/ARWorldTrackingConfiguration/detectionObjects) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)