Questions tagged [unity3d-unet]

UNET is the native Unity3D network system. It is the short form of unity networking. Use this tag to ask questions related to Unity3d networking.

UNET is the new native Unity3D network system (since Unity 5). It is the short form of unity networking.

http://docs.unity3d.com/Manual/UNetOverview.html

This tag covers :

  • High level scripting API, LLAPI, and all underlying concepts
  • GameDev network programming algorithms and concepts applied to Unity scripting.
  • Old (legacy) networking system.

Related tags

241 questions
1
vote
1 answer

Unet Syncing animator layer weight Unity 3D

I'm currently working on a multiplayer fps to learn UNET and Unity. in this project I'm using Network Animator Component to sync my animations. I have one layer that runs the normal states like walking and jumping and another that just controls the…
1
vote
1 answer

Shared GameSettings with U-Net

I have a scene where the player has the option to choose settings for the match they are creating (number of rounds, time per round etc..), I also have a utility class MatchSettings that contains all of these settings, when I run the game on the…
barbecu
  • 684
  • 10
  • 28
1
vote
0 answers

How to make a "Find Match" like Mobile Legends or some other MOBA game?

I'm trying to create a lobby system that will find a match like other MOBA Games. Like when 10 players is finding a match, it will start the game and when there's only 9 players the system will still wait until it becomes 10. I used Photon PUN 2 but…
PrinceZero101
  • 78
  • 1
  • 5
1
vote
1 answer

How to add NetworkManager component in unity 2019

After a lot of tutorials of Unet, I'm trying to add networkManager component to an empty object. But I couldn't find it? Is it removed from this version? Hope you give me some advice because I'm looking to publish my game. I tried a lot of tutorials…
1
vote
2 answers

Unity networking. transform.setparent() not working on a clinet side

I am writing a simple multiplayer board game in Unity. I have the following problem: transport.setparent() not working on a client side. When I launch a game as a server, everything is OK. When I connect to the server as a client…
levan
  • 440
  • 1
  • 8
  • 19
1
vote
1 answer

unity alternative to UNET for P2P server

Since UNET will be discontinued in a short time I have my doubt which alternative I can use, since photon does not help me to have a limited number of users since my game the idea is that each user creates a server and can join a friend (Will only…
MAGICK
  • 79
  • 2
  • 7
1
vote
1 answer

Problem in authority shifting of non-player object

I am making a multiplayer game and I want to have player to interact with a non-player object (whose transform can be changed by any player). When I interact them with the player who joined first (or the guy who is hosting) its working but if I try…
1
vote
0 answers

Unity3d UNET - SpawnWithClientAuthority doesnt have authority when host

I am having issues with SpawnWithClientAuthority when "hosting" a match with UNET in UNITY3D. If i create a stand alone server, and connect clients to it, everything works perfectly. If I host a game, where i am also a client, then for what ever…
Kyosaur
  • 11
  • 2
1
vote
2 answers

In Unity3D networking, how to have "more than one Player"?

I have a simple LAN topology with a server and say three clients, -client server -client -client (they are not literally "players") The three clients communicate to the server various information. Of course just using…
Fattie
  • 27,874
  • 70
  • 431
  • 719
1
vote
1 answer

Synchronizing variables with Unity UNET

What I want to do · Launch application 1, application 2 · If I press the button in the application 1, the button will be pressed even in the application 2 (change the click event or bool type variable) What I tried (I'm putting Unity files…
1
vote
1 answer

Sync Random Numbers In UnityNetwork

I want to assign random numbers to my objects that spawn when the server starts ,But every instance of the game makes its own random numbers and they don't sync together ,How can i fix that? public class Health : NetworkBehaviour { public Text…
Makdous
  • 23
  • 9
1
vote
1 answer

Unity Unet Adjusting a syncvar from a player action? - What am i doing wrong?

I'm attempting something that should be pretty simple, as it should happen in gaming quite often. I'm allowing players to spawn cubes in the world, and then when a player clicks on a cube, the cube's text value (and associated syncvar counter) are…
1
vote
0 answers

UNET object pooling with client authority (C#)

I am making a speech controlled multiplayer RTS in unity. I have managed to get the bases to spawn and behave correctly across the network. Now I am trying to get a method to spawn in the first unit I am working on, the soldier. To make it run…
Damien W
  • 101
  • 1
  • 4
1
vote
1 answer

SerialPort is Open but throws NullReferenceException on BytesToRead

I have A SerialPort created, and can check it is not null, and that SerialPort.IsOpen() returns true. But when I check the BytesToRead Property I get a NullReferenceException. NullReferenceException: Object reference not set to an instance of an…
Jethro
  • 3,029
  • 3
  • 27
  • 56
1
vote
1 answer

Unet, how to sync a counter to check if all players are ready

I'm making a multiplayer bomberman game using Unet. I'm trying to create a ready check to start the game when everyone else is ready. I tried using a sync var,Command and Rpc calls, but nothing seems to work properly. When using a Cmd call this way…