Shared Spatial Anchors appearing, but player not syncing
We're trying to build an experience with Shared Spatial anchors, and it seems like we've followed the example scene well. We're able to create an anchor, save it to the cloud, share it to another player, and then have that player query it and instantiate it in their room.
The anchor ends up appearing in the correct place, with the correct rotation, but when the receiving player tries to align to it, their location and rotation don't adjust to it at all. It stays exactly how it was.
Here's the code we're calling once the anchor is instantiated.
We've almost lifted the code exactly from the example scene. Any idea what's happening?
Hey! Yes. It looks like we were trying to align the player to the anchor in the same frame it was instantiated and InitializeFromExisting() was called. Apparently the transform data isn't properly loaded in yet. So we just Invoked() our AlignPlayer() function after 2 seconds to give the Anchors local transform data a chance to properly setup.
After that, it should just be a case of playing with your alignment function to make sure it's logic is fine. If you're always getting rotated 180* in the wrong direction but your anchors right, I would assume that should be pretty easy to fix.
Feel free to post your code if you need!