How to keep users from resizing models in AR Quick Look?

Is there a way to lock down the scale of a model in AR quicklook?

Accepted Reply

You have to use ARQuickLookPreviewItem; see allowsContentScaling https://developer.apple.com/documentation/arkit/arquicklookpreviewitem/3152993-allowscontentscaling


Through the web, you pass the allowsContentScaling=0 parameter. e.g.

https://developer.apple.com/augmented-reality/quick-look/models/drummertoy/toy_drummer.usdz#allowsContentScaling=0

  • setting allowsContentScaling = false still make the user scale the model

  • how do we make it so that the user cannot move and scale the model? so it is locked in place (in a place determined by us)?

Add a Comment

Replies

You have to use ARQuickLookPreviewItem; see allowsContentScaling https://developer.apple.com/documentation/arkit/arquicklookpreviewitem/3152993-allowscontentscaling


Through the web, you pass the allowsContentScaling=0 parameter. e.g.

https://developer.apple.com/augmented-reality/quick-look/models/drummertoy/toy_drummer.usdz#allowsContentScaling=0

  • setting allowsContentScaling = false still make the user scale the model

  • how do we make it so that the user cannot move and scale the model? so it is locked in place (in a place determined by us)?

Add a Comment

thank you Bobjt!