Initializer

init(archiveURL:)

Loads a reference object from the specified file URL.

Declaration

init(archiveURL url: URL) throws

Parameters

url

The local file URL containing the reference object to load.

error

A pointer to an NSError object. If this method returns nil, check this pointer for an error describing the failure.

Return Value

The reference object contained in the file.

Discussion

To use the object for detection in a world-tracking AR session, add it to the detectionObjects set in your session configuration.

See Also

Loading Reference Objects

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

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