Documentation Archive

Developer

Asset Catalog Format Reference

On This Page

AR Resource Group

A set of ARReferenceImages loaded by referenceImages(inGroupNamed:bundle:).

Extension

.arresourcegroup

Folder Contents

A set of unique AR Reference Image items.

Contents.json File (Required)

Metadata, on-demand resource tags, and a list of the AR Reference Images (Table 8-1.)

Table 8-1AR resource group tags

Key

Type

Description

info

Dictionary

Metadata for the author and format version of the asset catalog.

   author

String

Use your bundle ID.

   version

Number

The format version of the asset catalog. Use 1.

properties

Dictionary

Properties for the image set.

   on-demand-resource-tags

Array of strings

The on-demand resource tags for the resource group.

resources

Array

The reference images contained in the group.

   filename

String

The name of the asset catalog folder containing an ARReferenceImage.

Sample Contents.json File

  1. {
  2. "resources" : [
  3. {
  4. "filename" : "Reference image 1.arreferenceimage"
  5. },
  6. {
  7. "filename" : "Another reference image.arreferenceimage"
  8. },
  9.       …
  10. ],
  11.   "properties" : {
  12. "on-demand-resources : [
  13. "llama",
  14. "mountain"
  15. ]
  16.    },
  17.   "info" : {
  18.       "author" : "com.developerName",
  19.       "version" : 1
  20.    }
  21. }