Mirror icon indicating copy to clipboard operation
Mirror copied to clipboard

How can I use Mirror to communicate between two separate Unity projects

Open maojiahui opened this issue 3 years ago • 4 comments

I have two separate Unity projects, one running on Android phones and one running on Android-based AR glasses; How can I use Mirror to communicate between two separate Unity projects?

maojiahui avatar Jun 09 '22 06:06 maojiahui

It is possible, however you are prone to some gotchas. You will have to ensure your network code matches in both versions, otherwise Mirror will not operate correctly.

SoftwareGuy avatar Jun 09 '22 07:06 SoftwareGuy

It is possible, however you are prone to some gotchas. You will have to ensure your network code matches in both versions, otherwise Mirror will not operate correctly.

I imported mirrors into two different programs, one as a server and one as a client, but they didn't even connect to each other

maojiahui avatar Jun 09 '22 07:06 maojiahui

As @SoftwareGuy said generally this shouldn't be an issue, the only thing you need to make sure all the network related code is the same in both projects as mirror sends "internal" ids over the network which the other side may have no idea about if the code is different

You might be better off stopping by the Mirror discord for help questions, the issue tracker is only really for keeping track of, well, issues (and bugs and feature requests)

imerr avatar Jun 09 '22 08:06 imerr

As @SoftwareGuy said generally this shouldn't be an issue, the only thing you need to make sure all the network related code is the same in both projects as mirror sends "internal" ids over the network which the other side may have no idea about if the code is different

You might be better off stopping by the Mirror discord for help questions, the issue tracker is only really for keeping track of, well, issues (and bugs and feature requests)

OK, Thank You; 😄

maojiahui avatar Jun 09 '22 09:06 maojiahui