Hi,
you can do:
#if __has_include(<RealityKit/RealityKit.h>)
…… your shader code
#endif
instead.
Post
Replies
Boosts
Views
Activity
Ah that's good to know. I've often had similar simulator-related issues in the past where it would not even build and throw errors – probably because of some ARKit related APIs?
Even though it doesn't make a lot of sense to pass in an ARImageAnchor without a running ARSession it would still be great if it would just accept at and then either do nothing or have some kind of default simulated behaviour, like returning a fixed transform for the anchor. Would certainly ease the development slightly.