referenceObjects(inGroupNamed:bundle:)
Loads all reference objects in the specified AR Resource Group in your Xcode project’s asset catalog.
Declaration
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
nilto 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 property.