SharedAR Tutorial Error - SendUpdatesToOthers Error

Include the following details (edit as applicable):

  • Issue category: Multiplayer
  • Device type & OS version: Android / iOS /
  • Host machine & OS version: Windows
  • Issue Environment : Unity Remote / Unity Mock /
  • ARDK version: 2.0
  • Unity version: 2021.1.15f

Description of the issue:
Error in guide for Shared AR Host and Peers here

at timestamp 26:32, under private void SendUpdatesToOthers(IPeer sender, Vector3 position) - line 73

var toPeers = manager.NetworkSessionManager.Networking.OtherPeers.ToList();

The ‘ToList()’ is not found. The tutorial in youtube ended right there with no solution.

I appreciate any help available.

1 Like

Hello Peng,

Thank you for bringing this to our attention.

In order to use the ToList() method, you need to add the using System.Linq namespace at the top of your code. This step seems to be missing from the tutorial, so I will pass it along to our team so they can correct it. Thank you!

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.