Is model selection & customization in AR Quick Look possible?

584 Views Asked by At

Currently AR Quick Look allows loading 1 usdz or 1 reality file.

Is there any existing / planned functionality that would allow within AR Quick Look:

  1. customization of the loaded model (i.e. changing the textures)
  2. selection from a collection of (i.e. 10) models without packing all of them at once in 1 reality file

As reference there is this new functionality of Google Scene Viewer showing a collection of animals you can select:

1

There are 1 best solutions below

2
On

You can't change model's texture via ARQuickLook (as the name of framework implies) but you can definitely select files from collection.

For implementing a collection for ARQuickLook use the following instance method:

func numberOfPreviewItems(in controller: QLPreviewController) -> Int {  
    return 10
}

This method is used when Quick Look preview controller needs to know the number of preview items to include in the preview navigation list.

If you wanna know how your code might look like, please read this post.