Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ARKit Collaborative Session help

Discussion in 'AR' started by PunchCircle, Dec 16, 2019.

  1. PunchCircle

    PunchCircle

    Joined:
    Jul 8, 2019
    Posts:
    12
    Recently I played around with ARKit 3 and collaborative session.
    I want to make that the user can select what object he can instantiate
    So different user can instantiate different object the said user choose.

    Is this possible to achieve this?
    How can I send additional data about which prefab the user instantiate to other user?
    And how to retrieve the said data?

    I can get object's originated session Id from the object anchor, but it seem I can't modify or adding additional properties to the AR Anchor.
     
    zacharyaghaizu likes this.
  2. zacharyaghaizu

    zacharyaghaizu

    Joined:
    Aug 14, 2020
    Posts:
    65
    Hi Did you find a solution to this?
     
  3. PunchCircle

    PunchCircle

    Joined:
    Jul 8, 2019
    Posts:
    12
    This is a rather old one.
    Yes If I remember correctly, I create my own anchor_id to object dictionary of some sort.
    And I sent the data together with the world map.
    But it is been quite a while that I might be wrong.

    Also it is possible that ARkit may have something to facilitate this now, I haven't check it.
     
    zacharyaghaizu likes this.
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,025
    I would recommend that you explore multiplayer networking to implement something like this. Unity has a multiplayer networking solution (https://docs-multiplayer.unity3d.com/), and there are other solutions as well.
     
    zacharyaghaizu likes this.
  5. zacharyaghaizu

    zacharyaghaizu

    Joined:
    Aug 14, 2020
    Posts:
    65
    Thanks it would be great to see more on AR multiplayer
     
    andyb-unity likes this.