Questions tagged [unity3d-mirror]

Use this tag for questions about Mirror Networking, a networking API for Unity. It serves as a replacement for the deprecated UNet library.

Mirror Networking is a networking API for Unity. It serves as a replacement for the deprecated UNet library. The official website is https://mirror-networking.com/.

135 questions
3
votes
0 answers

Can't get Unity Mirror Networking example games to connect between my pc and android

Mirror Networking has a lot of example scenes that show how to use it. I tried running two instances of one of their examples called Pong. Pong Example Folder It worked pretty well, however when I tried running it on two different devices (my pc and…
3
votes
0 answers

Unity Mirror with Webgl socket exception error

SocketException: mono-io-layer-error (0) at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00000] in…
3
votes
1 answer

Unity Mirror - NetworkServer Send Message To Target Client

I'm not sure what I'm doing wrong here but I can't seem to get my message from the server to the client. Here is what I have so far: protected virtual void RegisterHandlers(bool enable) { if (enable) { …
wesleywh
  • 1,053
  • 1
  • 13
  • 30
2
votes
0 answers

isLocalPlayer always returns false [Mirror]

I'm trying to check if the player isLocalPlayer but it's just returning false every time. I have a lobby system where two to four players can join and connect on a network, they then spawn into the game but when I control one player it affects the…
Leanne
  • 77
  • 9
2
votes
0 answers

Unity Networking error "Disconnecting connId=0 to prevent exploits from an Exception in MessageHandler"

I am quite new to Unity mirror networking, I got below problem when I click "Host(Server + Client)", some document saying this because of I am not referring to an instance of an object, but where should I make changes? The player controller scripts…
Alicia
  • 75
  • 8
2
votes
1 answer

Steamworks.NET "Tried to Initialize the SteamAPI twice in one session!"

I am using Mirror with FizzySteamworks to integrate my Unity game to steam. My NetworkManager is initialized in the offline scene and is kept "DontDestroyOnLoad" to not shutdown the Steam API. The problem is that i get the following error once I…
2
votes
0 answers

Unity online multiplayer error: Connection was closed by peer, Timed out attempting to negotiate rendezvous

I am building an online multiplayer game using Unity. I use the "Mirror" Library. After some time developing with the "Telepathy" transporter in local (opening two instances on my computer) I decide to move on to Steam multiplayer, using…
Pordrack
  • 21
  • 2
2
votes
0 answers

Transfering large data (>100 MB) over Mirror in Unity

string SerializedFileString contains a serialized file, potentially hundreds of MB in size. The server tries to copy it into the client's local string ClientSideSerializedFileString. Too good to be true, which is why it throws an exception. Is there…
jkbx
  • 414
  • 1
  • 6
  • 21
2
votes
1 answer

Client disconnect when shooting in Unity (Mirror)

I am making an online multiplayer game in Unity with Mirror Networking. In this script I am trying to shoot a bullet by calling, from the client, a command on the server ( CmdFire() ) that instantiate a projectile from a shot position using the…
2
votes
0 answers

Unity Mirror Multiplayer RTS, client ignoring hasAuthority check

I'm working on an RTS game using mirror and ran into an issue. I'm working on auto-attack function for the units. Everything works for the host but not on clients. Any help would be very much appreciated, I've been at it for a few days already..…
IntenseMX
  • 61
  • 1
  • 6
2
votes
1 answer

Unity Mirror - How To Perform Individual Scene Traveling?

I'm a little stuck on what to do here. I haven't gotten any help from the discord server so I'm turning here in hopes someone has some insight for me. Background: Here is what I'm trying to accomplish. I want to have a server+client host (using…
wesleywh
  • 1,053
  • 1
  • 13
  • 30
2
votes
1 answer

Error in Unity Project integration with VSCode

I'm trying to develop my first game using Unity(2020.1.9f version).Due to low configuration I'm using VSCode as editor instead of default Visual Studio.But every time I open my project in VSCode it shows error in importing Mirror(package for…
2
votes
1 answer

Why does the host player not have authority to send server [Command]? Unity - Mirror

I am making a turn based multiplayer game with Unity 2019.3.2f1 and am using Mirror to connect the players. My goal is to add player objects to the GameMaster script (as you will see in my bottom-most script), so that I can keep track of them and…
1
vote
0 answers

How to apply damage to another player with Mirror Network (Unity)?

I am working on 3D multiplayer game with Mirror Engine and looking for the solution of following issues: I have a prefab "Vampire" which is spawned on server by different clients. When one vampire collides (OnTriggerEnter) with another, I want…
1
vote
0 answers

Client disconnects after changing name but host does not?

So i am new to Mirror and i made this to learn a bit,it changes name of the host normally but when i try it on a client he just disconnects,and without any errors.I have setup many debug.log statements to see where is the problem and it seems that…
1
2 3
8 9