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

Hololens having trouble anchoring as host or client - Unet

I am working with the HoloLens sharing with the unet example from the holotoolkit. I don't really have a problem but more like an annoyance. Almost every time I go to launch the app to test the HoloLens has trouble anchoring either as the host or as…
Dtb49
  • 1,211
  • 2
  • 19
  • 48
0
votes
1 answer

Hololens Sharing with Unet example: Client Hololens rotation and distance off by where I run the application in x or z axis

Edit So I noticed that it is not bound to 90 degrees. It is basically wherever I start the app at. If I start the application on opposite walls it is off by 180 degrees. I have also noticed even if I start on the same wall and if I start it on the…
Dtb49
  • 1,211
  • 2
  • 19
  • 48
0
votes
0 answers

Client not executing Commands in Unet

Edit Okay, so I partially solved the problem by adding a rigid body component to the capsule. I read somewhere that apparently you have to have one in order to move on the server. Problem 2 The next problem I have is that I can now move a capsule…
Dtb49
  • 1,211
  • 2
  • 19
  • 48
0
votes
1 answer

UNET- non-player object glitches back and forth after moving from previous spot to current

I am using Unet in Unity and I am trying to basically pick up an object and move it around the scene and show it to everyone on the server. I can successfully spawn the object with the host and both the client and host can see the object. However,…
Dtb49
  • 1,211
  • 2
  • 19
  • 48
0
votes
1 answer

Starting my app for 'host' networking mode in unity

Been going through some tutorials and the unity documentation to learn how to start up a networking instance as a 'host' but all that I've been able to find is how to initialize a system as a client or a server. I've attached code below that will…
greyBow
  • 1,298
  • 3
  • 28
  • 62
0
votes
1 answer

Unity network manager online matchmaking

The code below is how we can host or join a game using unity networking system. As you see in the code below there is two input fields that normally take "localhost" and "7777". public class CustomNetworkManager : NetworkManager { …
Armin
  • 576
  • 6
  • 13
0
votes
1 answer

Unable to find instance for a cloned player (Unet) in Unity

I am making a quake style game and i'm implementing multiplayer currently. there are jump pads where if the gameObject=("Player(Clone)") enters the trigger it is sent flying. In unet (Unity Multiplayer) when you launch and join in it creates your…
0
votes
1 answer

Making Unique Playername for my multiplayer game using unet Unity 3d

im having difficulties in creating unique player name system for my multiplayer game. i've tried using [Command] to get playername variable[SyncVar] and send data to server then send data from server to client using [ClientRpc] but i've got no luck.…
0
votes
1 answer

WebGL and UNet. Cant seem to get in proper contact with server from a browser

I am trying to setup a multiplayer game to be played through a browser using UNet. In the editor everything works fine, I followed a tutorial (https://www.youtube.com/watch?v=qGkkaNkq8co) that said it should work in webgl but sadly it does not.…
0
votes
1 answer

Why do I need [Command] for NetworkServer.Spawn() , but not for NetworkServer.Destroy()?

I have this script from a multiplayer shooter that I'm making , and I have a question about the use of the [Command] attribute This is the code: [Command] public void CmdShoot() { //Creat the bullet GameObject Bullet =…
Ron Serruya
  • 3,988
  • 1
  • 16
  • 26
0
votes
2 answers

How to Identify Sever and Client Seprately in Unity 3d

I am trying to understand data synchronization in Unity network development. First Problem that I am facing is to understand unity3D server client model. 1 My basic understand is that one machine behaves as server + client and other simply…
0
votes
1 answer

UNET SyncVar on server side not updated

I am trying to use SyncVar but I do not fully understand what I am doing wrong, if I do it wrong that is. Here is the situation: I have two public SyncVar's: redFunds and blueFunds and two local "old"-version to compare with I initiate the SyncVar…
PeterK
  • 4,243
  • 4
  • 44
  • 74
0
votes
3 answers

Is there a Unity Unet Spawn CallBack function?

On the server,I create an obj, and spawn it. But on the client how do I know when the object is spawned? I want to know whether there is a spawn callback function.
李东阳
  • 1
  • 1
0
votes
1 answer

ClientRpc Function not being carried out on all clients in Unity3d c#

Currently I am working on a networked 2d platformer game. I have a script that is supposed to instantiate the players jetpack called JetpackManager. However when the player is spawned into the scene the code only spawns a jetpack into the hosts…
RaZ
  • 235
  • 1
  • 4
  • 13
0
votes
1 answer

Problems with Network Transform Component

Currently I am having issues with my Network Transform component which is attached to my player prefab in my game. For some reason even though these are the correct settings for syncing rotation on the y axis when my player rotates on the y axis I…
RaZ
  • 235
  • 1
  • 4
  • 13