Thanks! Appreciate the guidance.
Post
Replies
Boosts
Views
Activity
Thanks OOper - I think my knowledge gap was with respect to debugging not UUID. I put together a test application to look into this more closely (see below) and even if you have a valid value in var id: UUID, in the debugger it will show Value (None). Which is kind of weird - surely it should show the string value of the UUID variable?But the simple summary was that my code was fine and your help was appreciated. 🙂
Hi Jim,Firstly, that's a really amazing reply to the question - it helped me a lot with my own project. One thing that was a little confusing is that in your explanation you said, "Here you ask your application bundle to find the named item (for 'name' it would search for 'name.usdz')" but actually in your code you look for a .reality file. This led me to implement my own function with a signature where you can pass in the file type.private lazy var fileURL: URL = Bundle.main.url(forResource: parent.name, withExtension: parent.arFileType)!Also, as a side note for those who haven't seen this yet a good tip is that, "If you include a Reality Composer file (.rcproject) in your app's Copy Files build phase, Xcode automatically outputs a converted .reality file in your app bundle at build time." So in other words don't add a .reality file directly to your source list, add the original .rcproject file instead.I do have one question for you - on this page for class QLPreviewController, it says that is supports, "3D models in USDZ format (with both standalone and AR views for viewing the model". In your sample code the preview is in full augmented reality mode using the camera, etc. But I'd like to be able to offer my users a way to preview a model just on a white background (ie. "standalone" mode). I just can't find how to do this. Any help would be most appreciated!- Dane
Thank you for the feedback ARQL_9000. I have filed a report with Feedback Assistant.