Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [mirror-networking]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Unity Multiplayer Sync Bools

I have a little problem with syncing booleans on my networking game. I use the Mirror-Package for networking and use KCP for transport. When the players basicly collide each other (using a sphere ...
user avatar
0 votes
0 answers
35 views

Networking a custom camera follow script with Mirror?

So I've got a pretty fleshed out game developed where player balls just fly around and attempt to smash one another. It's good fun in theory, but the multiplayer mechanic has proven very difficult. ...
user avatar
0 votes
0 answers
11 views

Unity Mirror's Rpc cannot have optional parameters?

I'm getting an error that a remote procedure call can't have optional parameters. I can work around that; but I can't find any documentation for it anywhere discussing a forbidding of optional ...
user avatar
0 votes
0 answers
68 views

Unity XR toolkit and Mirror networking, grabbing

I am new to both XR toolkit and Mirror and I have this problem that when I try to grab a box in online scene. It didn't work even thought it worked on the offline scene when I test it. anyone got any ...
user avatar
0 votes
1 answer
381 views

Getting XR Grabbable items networked with Unity

I'm trying to get XR Grabbable objects networked in Unity, with the networking framework Mirror. This should be a simple task as Mirror has a component called "NetworkTransform" that simply ...
user avatar
0 votes
0 answers
45 views

How can I display and sort a game server list by latency in a scalable manner?

If I have a game that allows players to self-host a multiplayer session which other players can join by browsing a game server browser to select a game I ideally want to be able to sort that list by ...
user avatar
  • 101
0 votes
1 answer
1k views

Mirror Create Player From Client and Change Scene

I'm very new to Mirror in Unity but I have a lot of experience in Network-programing. I'm currently trying to create a Game, where the Player's data is stored on the client, and can join different ...
user avatar
0 votes
1 answer
187 views

Why players who join late can't see other people data?

I want to show the name of the players above their head but I have a problem where people joining late doesn't get other players' name. For example: Player 1 joins to the server with the name Peter. ...
user avatar
  • 23
0 votes
1 answer
1k views

Unity Mirror client scene.local player.connection to client.client owned object not working in client

U hmm I'm new to mirror networking I just wanna find objects that the local player has authority, but it doesn't work on client, is there a solution to this? Well I could make an object tracking ...
user avatar
0 votes
0 answers
459 views

What's the better approach, running multiple server-builds on one instance or running one server-build and managing matches in different rooms?

We are building a racing multiplayer game using Mirror and Unity and we've been able to successfully run the authoritative server on AWS-Gamelift and Playfab so far. Both providers are with the ...
user avatar
  • 101
0 votes
0 answers
333 views

Scene's network objects are disabled when building server separately

If one of the clients is also the server then this situation does not happen and networked scene objects are visible. But when building the server separately and then when a client is connected, all ...
user avatar
0 votes
0 answers
165 views

Mirror Networking; How to Pass/Sync c# actions?

Since you can not pass actions as parameters to commands and rpc calls, how would you sync actions ? My main goal is to find an easy and generic way for objects to easily do actions from their local ...
user avatar
1 vote
2 answers
1k views

Unity 3D mirror, sync player spawn name

I am using Mirror for doing my little multi-player car racing project which I want to rename the game object automatically after the NetworkManager auto create the game object. Here is my ...
user avatar
  • 11
0 votes
1 answer
201 views

Moving non-local player from local player with Mirror Networking

i am using mirror networking which is based on UNet. I can move non local objects easly by assigning their authority to the local player and move them, but i can't assign/remove authority for other ...
user avatar
0 votes
1 answer
56 views

Synchronize running code over the network Unity

I want my code to run/perform the same on different Unity clients. I don't know if this is hard to achieve. Here hare my problems: The enemies movement: I have a pathfinding that should always give ...
user avatar
  • 35
5 votes
1 answer
4k views

How do I get the local player?

I'm using Mirror as UNet is deprecated. How can I get the local player GameObject in my code?
user avatar
  • 203
0 votes
1 answer
966 views

How to change player objects when switching scenes?

I have a scene for lobby. When player connects to server he gets a lobbyCharacter, which is an empty gameobject with a script on it that create UI element with the players name. In lobby players can ...
user avatar
1 vote
1 answer
491 views

Mirror/Unet, RegisterSpawnHandler throws invalid asset Id error because assetId is 0 for dynamically loaded assetbundles

Its weird how documentation literally states that For more advanced uses, such as object pools or dynamically created Assets, you can use the ClientScene.RegisterSpawnHandler method But seems like ...
user avatar
  • 541