Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipeer-connectivity example for macOS <> iOS ? #227

Open
antiero opened this issue Jun 1, 2023 · 4 comments
Open

multipeer-connectivity example for macOS <> iOS ? #227

antiero opened this issue Jun 1, 2023 · 4 comments

Comments

@antiero
Copy link

antiero commented Jun 1, 2023

The multipeer example mentions that:

Please notice that Multipeer Connectivity Transport can only run on an iOS device. It cannot run on your Mac. Therefore, when you want to debug your project in Unity Editor, we recommand you temporarily switch to use Unity Transport.

However Multipeer is supported on macOS - is there any reason why this couldn't work between macOS and iOS @yuchenz27 ?

@yuchenz27
Copy link
Contributor

yuchenz27 commented Jun 1, 2023

@antiero Yes you are right. Multipeer Connectivity is supported on macOS. When I was doing this transport, my goal was to use it in my iOS project so I just didn't make the macOS version. I haven't tried to connect a mac and an iPhone or two macs, I've only tried to connect several iOS devices. For debugging in Unity Editor, I just use ParrelSync and UnityTransport.

Do you need to use Multipeer Connectivity in a macOS project? Maybe I can make this transport support macOS in the future version.

@antiero
Copy link
Author

antiero commented Jun 1, 2023

Hi @yuchenz27 - thanks for getting back!

My goal is to set up an easily discoverable connection on a local network between a Mobile AR Application (built in Unity), and a macOS App (also built in Unity).

I'm hopeful that your Multipeer Connectivity work will allow for this, but I wanted to check if you thought it would work, before I started 😄

@yuchenz27
Copy link
Contributor

@antiero I think it would work. I will have a check first and let you know the result. Are you in hurry?

@antiero
Copy link
Author

antiero commented Jun 1, 2023

Thanks @yuchenz27 ! In quite a hurry yes! 😄 Any help you could give would be much appreciated.
Is there an example Unity Scene that I can use to test this out somewhere?

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

No branches or pull requests

2 participants