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

Unet Spawnable prefab not following Player Prefab on Client Side

I have got a problem with Gun not sticking to a Player. It only happens for a client. As you can see on the screen, the gun position is fine for the host(Player on the right). Gun Prefab has Network Identity with Local Player Authority checked, and…
0
votes
0 answers

Client is Taking Control of Camera

I have a networked game with a ship that the player flies around. The ship is a prefab with a camera. When the app runs, the player can move the ship around and the camera moves with the prefab as expected. However, when another player joins the…
tintyethan
  • 1,772
  • 3
  • 20
  • 44
0
votes
1 answer

unity v2018.2.8f1, C#, weaponSwitching via Instantiating them as a gameObject not syncing, uNet

I am making a multiplayer FPS and currently trying to get the weaponSwitching synced. My problem is: If I instantiate a new weapon it only shows on the local client. I do have a equip and deEqip animation, which seem to perfectly sync. The only…
0
votes
1 answer

Unity Networking: Restore server objects on scene after change scene

I use High-level API and I have a SceneA and SceneB. SceneA has a couple spawned objects. After a new connection, each client receives objects list and spawn it. But when I change networkScene A to SceneB and go back I see no objects on SceneA that…
xercool
  • 883
  • 1
  • 8
  • 24
0
votes
1 answer

How to control animation transition of static object in unity multiplayer

I want to animation of a static object which is in environment of unity multiplayer, are need to happen when player click on it. and also the animation would show every player who are connected to the server public class AnimationCtr :…
Jefhunt
  • 163
  • 1
  • 1
  • 9
0
votes
2 answers

Unity3D - UNet is closes all client connections

I developing a fps game with Unet LLAPI and HLAPI network solutions(LLAPI is for lobby server and HLAPI is for game server). When I test servers in localhost, everything is ok but when I test game servers in a dedicated server, the all clients are…
0
votes
2 answers

Change material on GameObjects with Unet in Unity

I want to change the material of a GameObject on all clients when I click on it in any client. I am new to UNET and I assume I have a conceptional flaw. So basically what I am trying to do is: Shoot a ray on the NetworkPlayer to an object in the…
0
votes
1 answer

Client doesnt get spawned gameObjects from server, and the other way around

So, I'm struggling with the whole Unet system. right now, all I want to do is to spawn object from one end to the other. but even that doesn't work. It spawns the object on each the server and the client. but doesn't sync. I've searched so many…
Dooodoo
  • 25
  • 8
0
votes
1 answer

Unity3D. How to properly handle projectile in a multiplayer shooter?

So I tried adding physical projectiles/bullets with speed and gravity to a simple first person shooter instead of just Raycasting and and using a Command if the client hits something. After a bit of trial and error I figured out that using a…
Glitshy
  • 3
  • 2
0
votes
0 answers

Unity [Command] function doesn't execute - UNet

I'm using Unity2018.2 on Windows 10. This is a piece of my script. The script is NetworkBehaviour and the gameobject has a Network Identity with Local Player Authority. This is in the Update method: if (isClient && !isServer) { …
G. Threepwood
  • 454
  • 8
  • 23
0
votes
0 answers

Oculus Rift Multiplayer

We are working on a VR collaboration app where user imports CAD files at run time. Then different users perform operations on it together. We are using Unity. The challenges: 1. CAD files are very large. 2. Our app has desktop as well as Oculus Rift…
0
votes
0 answers

Network lobby wait until all player scenes have loaded

I'm a noob to networking and a bit stuck with network lobby, my problem is if i build and load a scene on say 3 devices if the server one is the fastest it will load the scene and instantiate the player into the scene while the other 2 can be…
0
votes
0 answers

[UNET][AI] My bot faces clients but doesn't walk to them

My AI is taking two player gameObjects calculates which one is closer and goes to him until he is close than he just faces him: For some reason the bot won't follow the client even if the host is really far away. using System.Collections; using…
0
votes
0 answers

UNET Confusion with Authority and NetworkIdentity

I have developed a game in unity it is a Carrom game (similar to snooker). I am trying to make it multiplayer using UNET HLAPI but I am stuck. I cant understand what should be the correct way to do this I am using a server authoritative model and…
0
votes
1 answer

Is it possible to synchronize coordinate system between 2 devices in Unity with ARCore?

I work with ARCore in Unity and would like to know how I can synchronize coordinate system between 2 devices with help Network Manager. Maybe somebody knows if it is possible/impossible. Thanks.
Ruslan Leshchenko
  • 4,043
  • 4
  • 24
  • 36