Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
M100FAT's avatar
M100FAT
Explorer
3 years ago

Any possibility of sharing spatialanchors in a local network?

So I've gotten the whole spatial anchor photon multiplayer to work, and it works pretty well, however I would really like to have the whole application be able to run on a local network. I've set up everything but I run into the problem that OVRSpatialAnchor is not serializable and cannot be converted to byte array or json for transport. 

I've even tried sending the OVRSpace and UUID seperately but OVRSpace is not serializable either and doesn't seem to contain the actual data just the ID to access the data (probably from the cloud). 


Now it has to be possible to serialize this data as there is an option to store the data locally. (unless that can be saved even though it isn't serializable?) Does anyone know what data format to use to do this manually?

2 Replies

  • I would love to know if that is possible, but I think they lock that down because they don't want people to have access to the spatial room data used for the anchors as it could show stuff in your room potentially?  I know the local anchor data is stored in your room/boundary information.   Personally I wish the entirety of your boundary or room data could be shared between users in the same space. 

  • No luck yet, tried with sending the OVRPlugin.SpatialAnchorCreateInfo the spatial anchor is made with, but that seems to only contain the information about the virtual space, not about the physical space. It seems very intentional that those two are seperated like that so you are probably right.