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

UWP and HoloLens Unet [Command]

I have two different Unity projects, one is a HoloLens application and the other is the desktop application. My goal is to manipulate an object in the HoloLens application through the desktop application. At the moment I have Unet working when the…
Sou
  • 25
  • 7
1
vote
1 answer

Getting Race Position in Multiplayer Game in Unity3D using UNET

I am building a Runnig Race Multiplayer Game in Unity3D using UNET. I have 2 Player running straight in a game Subway Surfer. I want to update position of the player while running who is first and who is second and vice versa, the code is working…
Jamshaid Alam
  • 515
  • 1
  • 9
  • 24
1
vote
1 answer

Sync Sprite renderer's flip with unet

I am very new to Unity. I am working on a simple multiplayer game. Problem I am facing is I am not able to sync the sprite renderer's flip state when we press left and right arrow keys. Below is the code I tried. [SerializeField] private…
Prem sahni
  • 15
  • 6
1
vote
1 answer

How to separate server-side and client-side code

Is it possible to have separated projects for both client and server in Unity3D by using UNet? As far as I have seen it seems to be impossible, Unity3D official documentation is not much clear on that topic and have found zero examples or articles…
Alejandro Morán
  • 669
  • 1
  • 13
  • 36
1
vote
0 answers

Unity UNET - multiplayer + singleplayer programming approach issue

I recently started working on a project that was developed with single-player play in mind for around 3 months. To add multiplayer functionality (simple 1v1 server-client connection) I chose Unet, following mostly Unity tutorials and examples. I was…
Walik
  • 11
  • 1
1
vote
0 answers

Using Transport Layer while still using NetworkManager

I have a Unity networked project for which I am using the very convenient Unity Networking High Level API (with Network Manager component and Network Discovery among other components). This projects runs fine on two Android phones over LAN. I need…
Pierre Baret
  • 1,773
  • 2
  • 17
  • 35
1
vote
0 answers

Change Object name of spawn object to client and server depending on the localplayer ID (Unity 3d Unet)

I have a gameobject that is spawned via Networkserver.spawn(missile). I want to change the object name of the spawn missile depending on the local player name but it is always taking the server player name. i already used the [command] to send data…
1
vote
1 answer

Unity: Spawn object from client to all clients

I have a Player that shoots Bullets, but the Bullets are only being Spawned to all clients when the Player that shoots is the Host. Using Unity 5.6 What I have so far... I already have the Prefab registered in the NetworkManager. The Prefab has a…
Makarov
  • 185
  • 2
  • 13
1
vote
0 answers

Dedicated Server with UNET

I'm trying to make a multiplayer game where maximum 4 player could join into a room and shoot some enemy, with default unity network one of the player would be the host+client, but i would like to make a dedicated server and do most of the…
FunFair
  • 191
  • 1
  • 12
1
vote
0 answers

UNET: connect client to host using ip and port

I'm trying to create my first multiplayer game using UNET where one of the players is always hosting. I planned to do host migration to keep the game going even if the host leaves. Is this even a good idea in general? So far I have a function that…
Jonathan
  • 325
  • 2
  • 3
  • 24
1
vote
1 answer

Unity3D Unet ServerDisconnected due to error: Timeout

I am working on a MMO game using UNet. I have a headless server running on Linux Ubuntu hosted on AWS. Clients get connected to it and players can play with each other. After about 15 to 20 minutes all clients are disconnected and server shows the…
kashif789us
  • 474
  • 8
  • 23
1
vote
0 answers

Determine if the newly connected player is a client or the server player(host) and remove a msg on the server

I want to determine if the newly connected player is a client and on server player(host) remove a msg. In UNET i want there to be two players over LAN. The first player is the server player and then their opponent connects. The player searches for…
user2244896
1
vote
1 answer

How can send data from server to client with Unity Unet

i am using UNet. I have two gamers in scene. One of them is server one of them is client. I can get client data with [Command] and [ClientRPC] but i can't send data from server to client how can i solve this problem ? Note: The server is a player…
NurullahCelik
  • 41
  • 1
  • 9
1
vote
0 answers

Unity - GameObject.Find() works only on server

I am making a simple networking game. The scene has a button named 'ReloadButton' and i am trying to find this button and add a listener to it through my script attached on the player. private Button reloadBtn; void Start() { …
1
vote
0 answers

Unity Multiplayer client inputs are invaild

I try to do football game for fun but i got a problem void OnTriggerStay(Collider other) { if (other.tag == "BallTAG") RpcAddForceToBall(other.gameObject); } [ClientRpc] public void RpcAddForceToBall(GameObject hit) { if…