Is there an Unreal Engine function that resets the origin to the local spatial anchor created through the HoloLens?

혜진 서 91 Reputation points
2022-12-15T06:15:44.417+00:00

Is there an Unreal Engine function that resets the origin to the local spatial anchor created through the HoloLens?

When I use the azure spatial anchor, I could do that by the function called "Set AR World Origin Location and Rotation" in Unreal Engine.

But now I can't use the azure spatial anchor because it's not available for deploying app in window by hololens remote player

I'm doing in unreal engine5.1
I should reset the world origin location and rotation to local spatial anchor

HoloLens | Development
HoloLens | Development
The process of creating immersive mixed reality applications for Microsoft HoloLens,
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,096 Reputation points Microsoft External Staff
    2022-12-15T08:44:50.74+00:00

    Hello, Welcome to Microsoft Q&A,

    SetARWorldOriginLocationAndRotation is right, but currently Unreal Engine's Open XR plugin has a known issue with the implementation of this API, please refer to the description and workaround in SetARWorldOriginLocationandRotation() Not working as expected · Issue #19 · microsoft/MixedRealityToolkit-Unreal · GitHub.

    ----
    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.