Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question How to share object coordinates between users in a same room ?

Discussion in 'AR' started by osgseb, Mar 20, 2024.

  1. osgseb

    osgseb

    Joined:
    Jan 17, 2022
    Posts:
    26
    Hello,
    I was wondering if it is possible and how to have multiple players in a same room and having them share object locations ? For example someone taps on a plane (like a table) and the application instantiate a prefab representing a mug. Is it possible to have other players see that mug on the table ? I think sending the mug world position cannot not be enough because I’m not sure all players would have the same scene origin depending where they are in the room when they launch the application (that’s a guess).
    So is this scenario possible ? How would you do that ?

    thanks
     
  2. jstan-unity

    jstan-unity

    Unity Technologies

    Joined:
    Sep 15, 2023
    Posts:
    20
    A few potential solutions come to mind:

    1.) If you're only targeting iOS devices, AR Foundation supports collaborative sessions (see our AR Collaboration Data sample).

    2.) If you're targeting iOS and/or Android and open to using third-party solutions, Niantic Lightship has a Shared AR feature.

    3.) If you're targeting another device such as a Meta Quest device, neither of the above will work for that. It's possible that there's a solution out there for headset devices but I'm unaware of what those might be.
     
    andyb-unity and osgseb like this.