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
0
votes
1 answer

How do I flip a camera and not UI for a networked game?

This is my first networking game. I am trying to figure out how I position the player. My Player is a building, so it doesn't move, but it dictates the game. Like a Tower Defense. I always want the player to be at the bottom. What I need is for…
Tim Cooley
  • 749
  • 4
  • 19
  • 38
0
votes
1 answer

Additive Scene loading in Unity Networking

I have a main scene where my player is loading as i start or join server. On some action of the player i want to load additive scene in my main scene which is loading fine on the client but not across the network. My other clients are unable to…
0
votes
0 answers

In Unity, Implementing and overriding network manager for creating custom network manager

I need some answers for developing server for unity. In unity how can I implement network manager to create my network manager for connecting remote server? I'm gonna develop java socket server for my game but I could not find anything about…
0
votes
1 answer

How to connect networkig player with internet

I just followed a guide about Basic UNet Tut Here, Its spawning network car player which can be controlled by local player. I can make or join server through built-in Network Manager HUD which is provided by the unity along with Network Manager…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
0
votes
1 answer

Respawn Player on Scene Change

I'm trying to switch a scene over the network and i want each player to locally load the scene Async so that everyone can get a loading screen. I'm struggling with Command and RPC calls. After the scene changes i would like to respawn a new player…
Yooooomi
  • 895
  • 1
  • 8
  • 20
0
votes
1 answer

Unity WebGL build error: The name Network does not exist in the current context

I'm trying to build a multiplayer WebGL game with Unity3D, with the new UNET system. It runs perfectly in the editor, and builds perfectly for Mac and Windows, but I try to build it for WebGL it gives me this error in multiple scripts: The name…
0
votes
1 answer

Authority with UNET client

I need to modify a non-player object. I am able to do it but for some reasons, I get warning: Trying to send command for object without authority. UnityEngine.Networking.NetworkBehaviour:SendCommandInternal(NetworkWriter, Int32,…
Everts
  • 10,408
  • 2
  • 34
  • 45
0
votes
1 answer

Unity Spawning child with client authority

I'm currently learning how this whole networking thing works in unity. In my code I'm creating a spaceship made from multiple prefabs. It all starts with a single Hardpoint. A Hardpoint can hold a single object, which will be instantiated later on…
Kevin Kuyl
  • 1,215
  • 1
  • 17
  • 31
0
votes
0 answers

Unity3d Unet multiplayer - only server host can place buildings network aware

I am writting an multiplayer game but I am stuck with building system - I mean I've created a code to place blocks it works perfectly fine on host-side (when you run this script on host the block spawn for every client) but it isn't working on…
Seoner
  • 101
  • 8
0
votes
1 answer

UNET - Sync. script for color on non-player object

I have tried to fix this for weeks now without succeeding and REALLY need help. I am able to sync color on my non-player objects when i initiate the color sync on the actual player object. However, the problem I have is that i want to attach a…
PeterK
  • 4,243
  • 4
  • 44
  • 74
0
votes
1 answer

RemoveClientAuthority() still seems to be broken in 5.4.0 F3. Is this a BUG? ...or what do I do wrong

This is the same problem as in http://forum.unity3d.com/threads/re...ms-to-be-broken-in-5-2-1.359149/#post-2785856 My problem is the following: 1) Assign client authority to object: AssignClientAuthority 2) Move object, that works 3) Apply…
PeterK
  • 4,243
  • 4
  • 44
  • 74
0
votes
1 answer

Command not trigger from client

This code, located on the player, reacts to a button press in a menu and the idea is when pressing the button "btn_MenuKill" the first time it become orange and the next time it change the color back to original yellow and do "print ("FIRE THE…
PeterK
  • 4,243
  • 4
  • 44
  • 74
0
votes
1 answer

How to setup player prefab for football game

I am Working on a football game project in unity. This is a 2-player android game in which each team will have 5 players... i have setup all the game and now i got stuck in Networking. I want to do networking using the UNET not Photon. For this, I…
Muhammad Haseeb
  • 1,269
  • 12
  • 22
0
votes
1 answer

Unet. Multiplayer Vehicles

I am currently developing multiplayer fps shooter, and i am stuck on vehicles. i tried these "ClientRpc" stuff, "Command" and etc. So Player has Controll script, and this script has function OnControllerColliderHit, so if this happens i call void…
Nick
  • 455
  • 9
  • 28
0
votes
0 answers

Why does the spawn'ed objects not have the correct name & tag

I use the following code to spawn prefabs: public override void OnStartServer() { // LOAD THE MASTER LIST foreach (string anObject in nameList) { temp_GameObject = Instantiate (Resources.Load ("_BackSide")) as GameObject; …
PeterK
  • 4,243
  • 4
  • 44
  • 74