Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Support sharing ARUserAnchor removed and updated events #11

Open
noir-neo opened this issue Jul 29, 2018 · 4 comments
Open

Support sharing ARUserAnchor removed and updated events #11

noir-neo opened this issue Jul 29, 2018 · 4 comments

Comments

@noir-neo
Copy link
Owner

noir-neo commented Jul 29, 2018

identifier is not identical to other device's one.
this is because we can't construct ARAnchor with identifier.
https://developer.apple.com/documentation/arkit/aranchor

now I have 2 options of resolving this.

  1. use name and compare with it
  2. manage all user anchors by myself
@noir-neo
Copy link
Owner Author

now we can probably resolve it by collaborative session.

@owainrich
Copy link

Hi noir-neo. Your code is fantastic. I'm trying to send a string over the network in addition to the anchors so I can define which 3D object should be generated when a new UserAnchor is added. Bkudiess modified your code to send strings (https://unitylist.com/p/isi/Unity-Multipeer-Connectivity) but when I combine the code I get consistent crashes on the device receiving the string. Either code works fine but when I combine something's not right and I've spent a couple of weeks working on resolving it trying all sorts of things with no luck. If you have any ideas of how to send a string in addition to anchors I would be so appreciative of the advice.

Thank you and again I'm so impressed with your work making new things possible with ARKit and Unity!

Owain

@bwalczyk
Copy link

bwalczyk commented Jul 30, 2019

Hi Owain,

looks to me you're not using pre-code generation ( had the same issue initially ). You have to do it in order to alter MessagePackGenerated class located in Scripts/Generated. Otherwise any changes/additions made to the "packable" classes are not visible by the MessagePack, hence the crash upon receiving data. Check the link noir-neo mentioned in description ( https://github.com/neuecc/MessagePack-CSharp ) and scroll down to the "AOT Code Generation" section. That should sort your issue out.

@owainrich
Copy link

Hi bwalczyk,

Thank you so much for replying - this is so incredibly useful! I'm going to look at pre-code generation as this wasn't something I'd looked at and looks very likely it's causing the crashes. Wow - it would be amazing if I could get this working. I'll report back if I do!

Owain

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants