Skip to main content
New Participant
May 7, 2025

LocateSpace for Spatial Anchors (OVRPlugin)

  • May 7, 2025
  • 0 replies
  • 236 views
In the OVRPlugin.cs script in Meta SDK for Unity there is a function "TryLocateSpace" I have been used for relocating the Spatial Anchors. This is the declaration:
        public static bool TryLocateSpace(UInt64 space, TrackingOrigin baseOrigin, out Posef pose,
              out SpaceLocationFlags locationFlags)
 
After updating the Meta SDK to the last version V.74 I receive this a warning when accesing to the spatial anchor space (the first parameter of the function) --> ovrSpatialAnchor.Space.Handle
 
The warning: 'OVRSpatialAnchor.Space' is obsolet: 'This property exposes an internal handle that should no longer be necessary. You can Save, Erase and Share anchors using methods in this class'. 
 
 Why this property is now obsolete?  Is there another new way of relocating the anchors then?
    This topic has been closed for replies.