Configuring Virtual Objects in the “Shared AR VPS” Sample Location

Include the following details (edit as applicable):

    • Issue category: Sample

    • Device type & OS version: iOS17.7.1

    • Host machine & OS version: Mac on Ventura 13.7.8

    • Issue Environment : Unity Remote

    • Xcode version:

    • ARDK version:3.16.0

    • Unity version:Unity6000.036f1

Description of the issue:

I set a virtual object in the location for Sample “Shared AR VPS”, but it could not be shared.

Please tell me how to set up the virtual object and how to use Sample “Shared AR VPS”.

Hi Noriko,

I’m sorry to hear you’re having trouble with the Shared AR VPS sample. Have you added a location to the sample? For more information on how it’s meant to work, please review How to Use VPS Colocalization with Netcode in our documentation. Also, there is a How to Display Shared Objects with Netcode article in there which should clarify how objects are meant to be distributed to clients further.

Please take some time to review these articles and let me know what questions or concerns you may have.

Kind regards,
Maverick L.

Hi Marveric_Niantic

The PlayerPrefab described in “How to Display Shared Objects with Netcode” was configured for each individual avatar.

So, how can I share objects placed in VPS locations?

I tried sharing objects placed using the method from How-Tos/VPS/How to Place Content in Real-World Locations Using Location AR, but I couldn’t share their movement or rotation behavior.

Please tell me the solution.

Hi Noriko,

After objects are placed, you will have to periodically update connected clients with the transform of the generated objects. To do so, add the NetworkObject and NetworkBehaviour components to the objects you want to synchronize across the network. Make sure to enable Synchronize Transform on the NetworkObject in the Inspector. For more information, please review Unity’s documentation here.

Let me know if you have any other questions or need clarification!

Kind regards,
Maverick L.